2015-03-31 20:15:22 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import os
|
2019-08-28 03:46:04 +02:00
|
|
|
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())
|
|
|
|
|
2019-08-28 03:46:04 +02:00
|
|
|
application = create_app()
|
|
|
|
|
|
|
|
# For running on the server with passenger etc
|
|
|
|
if __name__ == "__main__":
|
|
|
|
application.run(port=8000)
|