第一次使用 Heroku 部署 Django
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 找不到这个文件。
我是第一次部署应用程序,我关注的是 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 找不到这个文件。