我有一个在Azure上托管的Django项目。我需要添加在每个部署上执行的部署。我已经使用kuduscript生成自定义部署脚本,并且我的文件结构现在看起来像这样:
- site/
- app/
- manage.py
- requirements.txt
- .deployment
- deploy.cmd
我没有对.deployment或deploy.cmd文件进行任何更改。但是当我跑步
git push azure master
我收到以下错误消息:
Running custom deployment command...
Not setting execute permissions for deploy.cmd
Running deployment command...
/opt/Kudu/bin/Scripts/starter.sh: line2: exec: deploy.cmd: not found
App container will begin restart within 10 seconds
Error - Changes committed to remote repository but deployment to website failed
关于为什么找不到deploy.cmd的任何想法?