Update to support running on elasticbeanstalk.
This commit is contained in:
parent
ea6df2b725
commit
b0720aac1c
6 changed files with 33 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
*.pyc
|
||||
venv
|
||||
.elasticbeanstalk/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import logging
|
||||
|
||||
from app import app
|
||||
from app import app as application
|
||||
|
||||
import endpoints.index
|
||||
import endpoints.api
|
||||
|
@ -8,9 +8,12 @@ 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)
|
||||
|
||||
app.run(port=5001, debug=True)
|
||||
application.run(port=5001, debug=True)
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
import logging
|
||||
import json
|
||||
|
||||
from flask import make_response, request, session, Response, abort
|
||||
import simplejson as json
|
||||
from functools import wraps
|
||||
from datetime import datetime
|
||||
from time import time
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
import logging
|
||||
import json
|
||||
|
||||
from flask import abort, request, jsonify, make_response
|
||||
import simplejson as json
|
||||
|
||||
import storage
|
||||
|
||||
|
|
8
requirements-nover.txt
Normal file
8
requirements-nover.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
peewee
|
||||
flask
|
||||
py-bcrypt
|
||||
Flask-Principal
|
||||
Flask-Login
|
||||
Flask-Mail
|
||||
python-dateutil
|
||||
boto
|
|
@ -1,6 +1,17 @@
|
|||
peewee
|
||||
flask
|
||||
py-bcrypt
|
||||
Flask-Principal
|
||||
Flask-Login
|
||||
Flask-Mail
|
||||
Flask==0.10.1
|
||||
Flask-Login==0.2.7
|
||||
Flask-Mail==0.9.0
|
||||
Flask-Principal==0.4.0
|
||||
Jinja2==2.7.1
|
||||
MarkupSafe==0.18
|
||||
Werkzeug==0.9.4
|
||||
argparse==1.2.1
|
||||
blinker==1.3
|
||||
boto==2.13.3
|
||||
distribute==0.6.34
|
||||
itsdangerous==0.23
|
||||
peewee==2.1.4
|
||||
py-bcrypt==0.4
|
||||
python-dateutil==2.1
|
||||
six==1.4.1
|
||||
wsgiref==0.1.2
|
||||
|
|
Reference in a new issue