haldis/app/passenger_wsgi.py
2019-09-11 22:47:06 +02:00

16 lines
349 B
Python

#!/usr/bin/env python3
import os
import sys
INTERP = os.path.expanduser("~/env/bin/python3")
if sys.executable != INTERP:
os.execl(INTERP, INTERP, *sys.argv)
sys.path.append(os.getcwd())
from app import create_app
application = create_app().app
# For running on the server with passenger etc
if __name__ == "__main__":
application.run()