【发布时间】:2021-05-16 20:06:30
【问题描述】:
我第一次部署应用程序时,我正在关注 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)
我的项目如下所示:
【问题讨论】:
标签: django heroku deployment