2017-07-02 94 views
0

我想更新一個應用程序,我已經從一個月前處理過的項目中獲得了對heroku的支持。部署Flask應用程序到Heroku的問題

我只是想推我的新.py應用程序。但我使用git push heroku master

當遠程收到以下錯誤:----->無法檢測應用程序匹配https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz buildpack

我的文件結構是:

enter image description here

Procfile是web: gunicorn app:app

據我所知,havin g當前require.emts.txt和推動應該是我需要的一切?

我該如何解決此問題?

這裏是終端打印:

enter image description here

本地網站截圖:

enter image description here

+0

可以喲你將Procfile的內容添加到你的文章中? – Bovarysme

+0

我已添加文件內容 – jwarris91

+0

該應用程序是否使用'heroku local web'在本地運行? – Bovarysme

回答

0

我解決了這個做一個git做一個混帳推$ git push heroku master之前提交$ git commit -am "descrip",只是做git推與文件識別造成衝突