0
我的Heroku应用程序运行到应用程序错误与以下日志:为什么heroku无法找到python/flask模块或应用程序?
Starting process with command `gunicorn run:app`
Failed to find application: run
这里是我的Procfile
web: gunicorn run:flask_app
run.py文件
从应用进口create_app,DB 从应用程序。 auth.models import用户
if __name__ == '__main__':
flask_app = create_app('prod')
with flask_app.app_context():
db.create_all()
if not User.query.filter_by(user_name='harry').first():
User.create_user(user='harry', email='[email protected]', password='secret')
flask_app.run()
尝试Noshii,不工作... – Hara