将 django 应用程序部署到 heroku 期间出现“应用程序与 buildpack 不兼容”错误

时间:2021-03-02 18:54:04

标签: django heroku

我尝试将我的第一个 django 应用程序部署到 heroku。 在部署期间我收到错误:

remote: -----> Building on the Heroku-20 stack
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure

我遇到了更新 builpack 的 detect 脚本并使用它的建议:

if [ ! -f "$BUILD_DIR/requirements.txt" ] && [ ! -f "$BUILD_DIR/setup.py" ] && [ ! -f "$BUILD_DIR/Pipfile" ]; then
  exit 1
fi

但我不知道这个脚本的位置以及如何访问它。

你能告诉我,如何使用它吗?

0 个答案:

没有答案