Merge branch 'master' of github.com:ZeusWPI/Blokdata

This commit is contained in:
Robbe Van Herck 2020-05-13 17:16:28 +02:00
commit 3f9a5b3da7
4 changed files with 14 additions and 1 deletions

0
blokdata/__init__.py Normal file
View file

View file

@ -1,4 +1,4 @@
from sheet_data import google_sheet_to_json from .sheet_data import google_sheet_to_json
from flask import Flask from flask import Flask
from flask_cors import CORS, cross_origin from flask_cors import CORS, cross_origin

13
passenger_wsgi.py Normal file
View file

@ -0,0 +1,13 @@
import os
import sys
INTERP = os.path.expanduser("~/venv/bin/python3")
if sys.executable != INTERP:
os.execl(INTERP, INTERP, *sys.argv)
sys.path.append(os.getcwd())
from blokdata.app import app as application
# For running on the server with passenger etc
if __name__ == "__main__":
application.run()