【问题标题】:Django deploy with Heroku for the first timeDjango 首次使用 Heroku 部署
【发布时间】: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


    【解决方案1】:

    您应该将 ProcFile 重命名为 Procfile。 Heroku 找不到此文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-16
      • 1970-01-01
      • 2019-08-05
      • 2019-05-18
      • 1970-01-01
      • 2019-10-31
      • 1970-01-01
      相关资源
      最近更新 更多