我的nodejs repo中有一个自定义的.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.
1条答案
按热度按时间gz5pxeao1#
这是按设计的,当您拥有自定义部署脚本时,您可以完全控制部署,因此
project
财产没有意义。如果需要不同的项目,只需使用所需的内容更新自定义部署脚本。