Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
133 views
in Technique[技术] by (71.8m points)

How to revise files for Heroku app deployment?

I have built a rudimentary app using tensorflow. I am able to use my command line to run the app in my local network, but I'm not trying to use Heroku to deploy it via Heroku's platform. I use the following steps:

  1. activate myenv
  2. cd (my directory where all the files are located)
  3. heroku login
  4. git init
  5. heroku git:remote -a "app name in my Heroku account"
  6. git add .
  7. git commit -am "update"
  8. git push heroku master

I run what's above and the app is loaded and compressed, but when I paste the url into by browser, I get "Application Error." Looking at the command line, there is nothing in red that would make me think there's an obvious error. I'm using gunicorn and procfile with "web: gunicorn app:app" is a txt file--should it be something else? my Python code is called app.py as well, so that shouldn't be an error. I also have all the necessary libraries in the requirements.txt file. I know this is vague, but does anyone have any ideas what it could be? I find it strange it works when running the python file in my command line but not Heroku.

question from:https://stackoverflow.com/questions/66057832/how-to-revise-files-for-heroku-app-deployment

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...