Server stuff
This commit is contained in:
parent
74e3202a26
commit
1fdc7889cf
2 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
config.py
|
config.py
|
||||||
venv/
|
venv/
|
||||||
|
passenger.3000.pid.lock
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
|
12
passenger_wsgi.py
Executable file
12
passenger_wsgi.py
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
|
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 app as application
|
Loading…
Reference in a new issue