xylucien / MusicalKits_Converter

My personal Flask project
1 stars 0 forks source link

Deploy to AWS EB under new structure #29

Closed xylucien closed 4 years ago

xylucien commented 4 years ago

Hm, since my code is now a python package, I need to change eb configuration, which I am a little confused. Should I write another application.py to let eb know where to launch my app? Is there other ways to do it?

xicheng87 commented 4 years ago

How did you launch your refactored app locally then (since you said it works)? Can't we do the same with EB? So I guess now the new deployment fails?

xylucien commented 4 years ago

export FLASK_APP=converter flask run

xylucien commented 4 years ago

I just added back the file that tells eb where to start. It should work now.

xylucien commented 4 years ago
[Tue Jun 30 07:30:48.819641 2020] [:error] [pid 4333] [remote 127.0.0.1:0] mod_wsgi (pid=4333): Target WSGI script '/opt/python/current/app/wsgi.py' does not contain WSGI application 'application'.
[Tue Jun 30 07:30:49.822271 2020] [:error] [pid 4333] [remote 127.0.0.1:36] mod_wsgi (pid=4333): Target WSGI script '/opt/python/current/app/wsgi.py' does not contain WSGI application 'application'.
[Tue Jun 30 07:30:50.824631 2020] [:error] [pid 4333] [remote 127.0.0.1:14888] mod_wsgi (pid=4333): Target WSGI script '/opt/python/current/app/wsgi.py' does not contain WSGI application 'application'.
[Tue Jun 30 07:30:51.826029 2020] [:error] [pid 4333] [remote 127.0.0.1:40] mod_wsgi (pid=4333): Target WSGI script '/opt/python/current/app/wsgi.py' does not contain WSGI application 'application'.
[Tue Jun 30 07:31:07.782506 2020] [:error] [pid 4333] [remote 108.6.162.123:40] mod_wsgi (pid=4333): Target WSGI script '/opt/python/current/app/wsgi.py' does not contain WSGI application 'application'.
xylucien commented 4 years ago

still not working, ill look into this tmr

xylucien commented 4 years ago

its working now - i just need to import create_app from converter, then call it and name the return value application