Fix deployment

This commit is contained in:
Herbert 2020-05-13 16:59:53 +02:00
parent 4e42f1653f
commit ecd12fff40
2 changed files with 14 additions and 1 deletions

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_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()