我尝试将我的第一个 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
但我不知道这个脚本的位置以及如何访问它。
你能告诉我,如何使用它吗?