Do stuff on server
This commit is contained in:
parent
6a5a0ed20d
commit
6eb310199a
4 changed files with 14 additions and 23 deletions
11
app/app.py
11
app/app.py
|
@ -12,14 +12,3 @@ app.extensions['bootstrap']['cdns']['bootstrap'] = StaticCDN()
|
|||
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
class PrefixFix(object):
|
||||
|
||||
def __init__(self, app, script_name):
|
||||
self.app = app
|
||||
self.script_name = script_name
|
||||
|
||||
def __call__(self, environ, start_response):
|
||||
path = environ.get('SCRIPT_NAME', '') + environ.get('PATH_INFO', '')
|
||||
environ['SCRIPT_NAME'] = self.script_name
|
||||
environ['PATH_INFO'] = path[len(self.script_name):]
|
||||
return self.app(environ, start_response)
|
||||
|
|
|
@ -10,7 +10,6 @@ from utils import *
|
|||
from views import *
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if app.debug:
|
||||
app.run(host='0.0.0.0', port=80)
|
||||
else:
|
||||
|
|
|
@ -7,6 +7,7 @@ INTERP = os.path.expanduser("~/env/bin/python")
|
|||
if sys.executable != INTERP:
|
||||
os.execl(INTERP, INTERP, *sys.argv)
|
||||
|
||||
sys.path.append(os.path.join(os.getcwd(), "app"))
|
||||
sys.path.append(os.getcwd())
|
||||
|
||||
from james import app as application
|
|
@ -1,15 +1,17 @@
|
|||
certifi==14.5.14
|
||||
Flask==0.10.1
|
||||
Flask-Admin==1.0.9
|
||||
Flask-Bootstrap==3.3.2.1
|
||||
Flask-Login==0.2.11
|
||||
Flask-OAuthlib==0.8.0
|
||||
Flask-SQLAlchemy==2.0
|
||||
Flask-WTF==0.10.3
|
||||
Flask-Bootstrap==3.3.2.1
|
||||
itsdangerous==0.24
|
||||
Jinja2==2.7.2
|
||||
MarkupSafe==0.23
|
||||
SQLAlchemy==0.9.8
|
||||
WTForms==2.0
|
||||
Werkzeug==0.9.6
|
||||
itsdangerous==0.24
|
||||
requests==2.4.0
|
||||
Flask-OAuthlib==0.8.0
|
||||
oauthlib==0.7.2
|
||||
PyMySQL==0.6.6
|
||||
requests==2.4.0
|
||||
SQLAlchemy==0.9.8
|
||||
Werkzeug==0.9.6
|
||||
WTForms==2.0
|
||||
|
|
Loading…
Reference in a new issue