Update to support running on elasticbeanstalk.
This commit is contained in:
parent
ea6df2b725
commit
b0720aac1c
6 changed files with 33 additions and 10 deletions
19
application.py
Normal file
19
application.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
import logging
|
||||
|
||||
from app import app as application
|
||||
|
||||
import endpoints.index
|
||||
import endpoints.api
|
||||
import endpoints.web
|
||||
import endpoints.tags
|
||||
import endpoints.registry
|
||||
|
||||
# Remove this for prod config
|
||||
application.debug = True
|
||||
|
||||
if __name__ == '__main__':
|
||||
FORMAT = '%(asctime)-15s - %(levelname)s - %(pathname)s - ' + \
|
||||
'%(funcName)s - %(message)s'
|
||||
logging.basicConfig(format=FORMAT, level=logging.DEBUG)
|
||||
|
||||
application.run(port=5001, debug=True)
|
Reference in a new issue