fixed issues to let it run on server
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -363,8 +363,8 @@ MigrationBackup/
|
|||||||
# Fody - auto-generated XML schema
|
# Fody - auto-generated XML schema
|
||||||
FodyWeavers.xsd
|
FodyWeavers.xsd
|
||||||
/virtEnv_1
|
/virtEnv_1
|
||||||
/filecache
|
|
||||||
/env
|
/env
|
||||||
/env_OLD
|
/env_OLD
|
||||||
/myenv
|
/myenv
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
|
allauctions_NL.json
|
||||||
|
|||||||
2
app.py
2
app.py
@@ -7,7 +7,7 @@ from utils.auctionutils import getAuctionlocations
|
|||||||
from models.location import JsonEncoder
|
from models.location import JsonEncoder
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
CORS(app, resources={r"/*": {"origins": ["http://localhost:4200","https://auctionviewer.ikbenhenk.nl", "https://victorious-bay-0d278c903.3.azurestaticapps.net"]}})
|
CORS(app, resources={r"/*": {"origins": ["http://localhost:4200","https://auctionviewer.ikbenhenk.nl"]}})
|
||||||
application = app # our hosting requires application in passenger_wsgi
|
application = app # our hosting requires application in passenger_wsgi
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
|
|||||||
6
passenger_wsgi.py
Normal file
6
passenger_wsgi.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
from app import app as application
|
||||||
|
|
||||||
|
import importlib.util
|
||||||
|
spec = importlib.util.spec_from_file_location("wsgi", "app.py")
|
||||||
|
wsgi = importlib.util.module_from_spec(spec)
|
||||||
|
spec.loader.exec_module(wsgi)
|
||||||
Reference in New Issue
Block a user