[英]Django deploy with Heroku for the first time
我第一次部署应用程序时,我正在关注 PrettyPrinted 视频“将 Django 应用程序部署到 Heroku”。 嗯,当我在heroku local
时,我得到了这个错误。
› Warning: heroku update available from 7.52.0 to 7.53.1.
[WARN] ENOENT: no such file or directory, open 'Procfile'
[FAIL] No Procfile and no package.json file found in Current Directory - See run --help
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at Index.run (/snap/heroku/4048/node_modules/@heroku-cli/plugin-local/lib/commands/local/index.js:30:38)
at Index._run (/snap/heroku/4048/node_modules/@heroku-cli/plugin-local/node_modules/@oclif/command/lib/command.js:43:31)
我的项目如下所示:
您应该将 ProcFile 重命名为 Procfile。 Heroku 找不到这个文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.