2023-11-07 20:54:27 +01:00
|
|
|
#!/usr/bin/python
|
2018-12-30 09:24:29 +01:00
|
|
|
import os
|
|
|
|
import sys
|
2023-11-07 20:54:27 +01:00
|
|
|
import logging
|
|
|
|
logging.basicConfig(stream=sys.stderr)
|
|
|
|
sys.path.insert(0, os.path.dirname(__file__))
|
|
|
|
activate_this = os.path.join(os.path.dirname(__file__), 'bin/activate_this.py')
|
|
|
|
with open(activate_this) as file_:
|
|
|
|
exec(file_.read(), dict(__file__=activate_this))
|
|
|
|
|
2018-12-30 09:24:29 +01:00
|
|
|
from app import create_app
|
|
|
|
|
|
|
|
def application(environ, start_response):
|
|
|
|
os.environ['SECRET_KEY'] = environ.get('SECRET_KEY')
|
|
|
|
app = create_app()
|
|
|
|
return app(environ, start_response)
|