简体   繁体   中英

Showing “Application Error” while opening Flask app on Heroku

This is my first time using Heroku. I have builded a deep learning flask web app. It is running fine on local machine but when i try to open the app it shows "Application error". I have changed the requirements.txt and procfile to see the effect as it was suggested on other community pages but it was not working.

my file structure:

ImageClassifier_DeepLearning
 |
 + static
 |      |
 |      + style.css
 |
 + templates
 |       |
 |       + index.html
 |       + index2.html
 |       + show.html
 |       + upload.html
 |
 + uploads
 |       | 
 |       +.jpg,.jpeg ....
 |
 + Procfile
 |
 + requirements.txt
 |
 + app.py
 |
 + model2.h5

Procfile

  
web: gunicorn --bind 0.0.0.0:22471 app:app

Here, i am attaching my log file. Thanks a ton if anyone can help!

在此处输入图像描述

You need to change main-api:app to app:app in Procfile file.

web: gunicorn --bind 0.0.0.0:22471 app:app

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