我的 nodeJS 存储库中有一个自定义 .deployment 文件,如下所示:
[config]
project = src/portal
command = deploy.cmd
如果我删除该command
设置,则该project
设置受到尊重。但是,我需要自定义部署脚本来执行一些 bower 和 grunt 命令。每当我重新添加command
参数时,Azure/KUDU 似乎都会忽略该project
设置。我已恢复为使用生成的默认 deploy.cmd 脚本,azure site deploymentscript --node
以确保我的自定义不是问题。问题依然存在。我错过了什么吗?
作为参考,这是 azure 的 KUDU 输出:
remote: Updating branch 'master'.
remote: Updating submodules.
remote: Preparing deployment for commit id '3f92585db0'.
remote: Running custom deployment command...
remote: Running deployment command...
remote: Handling node.js deployment.
remote: KuduSync.NET from: 'D:\home\site\repository' to: 'D:\home\site\wwwroot'
remote: Looking for app.js/server.js under site root.
remote: Missing server.js/app.js files, web.config is not generated
remote: The package.json file does not specify node.js engine version constraints.
remote: The node.js application will run with the default node.js version 0.10.32.
remote: Finished successfully.
remote: Deployment successful.