haldis/app/passenger_wsgi.py

19 lines
354 B
Python
Raw Normal View History

2015-03-31 20:15:22 +02:00
#!/usr/bin/env python
import os
import sys
from app import create_app
2015-03-31 20:15:22 +02:00
INTERP = os.path.expanduser("~/env/bin/python")
if sys.executable != INTERP:
os.execl(INTERP, INTERP, *sys.argv)
sys.path.append(os.getcwd())
application = create_app()
# For running on the server with passenger etc
if __name__ == "__main__":
application.run(port=8000)