简体   繁体   中英

Issue deploying Flask app to Heroku

I want to update an app i have on heroku from a project i worked on over a month ago.

I just want to push my new .py app to it. But i get the following error when using git push heroku master

remote: -----> Failed to detect app matching https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz buildpack

My file structure is:

在此处输入图片说明

Procfile is web: gunicorn app:app

As far as im aware, having a current require.emts.txt and pushing should be all i need?

How can i trouble shoot this?

Here is the terminal print:

在此处输入图片说明

local web screenshot:

在此处输入图片说明

我通过执行git commit $ git commit -am "descrip"解决此问题,然后再执行git push $ git push heroku master ,只是执行git push导致与文件识别冲突

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM