Server stuff

This commit is contained in:
Rien Maertens 2019-02-13 21:00:13 +01:00
parent 74e3202a26
commit 1fdc7889cf
No known key found for this signature in database
GPG key ID: 10C6D8C91DE58E4A
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View file

@ -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
View 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