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:
- activate myenv
- cd (my directory where all the files are located)
- heroku login
- git init
- heroku git:remote -a "app name in my Heroku account"
- git add .
- git commit -am "update"
- 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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…