Refactor for heroku

This commit is contained in:
phillip committed 2022-07-15 02:07:40 +02:00
1 parent 95838885e7
commit 895dd14073
20 files changed
+11 -10

No files matched your search

+8 -8
View File
@@ -8,11 +8,11 @@
"preLaunchTask": "versiondump", "preLaunchTask": "versiondump",
"name": "Python: Flask", "name": "Python: Flask",
"type": "python", "type": "python",
"cwd": "${workspaceFolder}/backend/app", "cwd": "${workspaceFolder}/backend",
"request": "launch", "request": "launch",
"module": "flask", "module": "flask",
"env": { "env": {
"FLASK_APP": "backend/app/main.py", "FLASK_APP": "backend/main.py",
"FLASK_ENV": "development", "FLASK_ENV": "development",
"FLASK_DEBUG": "1" "FLASK_DEBUG": "1"
}, },
@@ -27,11 +27,11 @@
"preLaunchTask": "versiondump", "preLaunchTask": "versiondump",
"name": "Python: Flask (with reload)", "name": "Python: Flask (with reload)",
"type": "python", "type": "python",
"cwd": "${workspaceFolder}/backend/app", "cwd": "${workspaceFolder}/backend",
"request": "launch", "request": "launch",
"module": "flask", "module": "flask",
"env": { "env": {
"FLASK_APP": "backend/app/main.py", "FLASK_APP": "backend/main.py",
"FLASK_ENV": "development", "FLASK_ENV": "development",
"FLASK_DEBUG": "1" "FLASK_DEBUG": "1"
}, },
@@ -45,11 +45,11 @@
"preLaunchTask": "versiondump", "preLaunchTask": "versiondump",
"name": "Python: Flask (with reload, externally reachable)", "name": "Python: Flask (with reload, externally reachable)",
"type": "python", "type": "python",
"cwd": "${workspaceFolder}/backend/app", "cwd": "${workspaceFolder}/backend",
"request": "launch", "request": "launch",
"module": "flask", "module": "flask",
"env": { "env": {
"FLASK_APP": "backend/app/main.py", "FLASK_APP": "backend/main.py",
"FLASK_ENV": "development", "FLASK_ENV": "development",
"FLASK_DEBUG": "1" "FLASK_DEBUG": "1"
}, },
@@ -64,11 +64,11 @@
"preLaunchTask": "versiondump", "preLaunchTask": "versiondump",
"name": "Python: Flask (externally reachable)", "name": "Python: Flask (externally reachable)",
"type": "python", "type": "python",
"cwd": "${workspaceFolder}/backend/app", "cwd": "${workspaceFolder}/backend",
"request": "launch", "request": "launch",
"module": "flask", "module": "flask",
"env": { "env": {
"FLASK_APP": "backend/app/main.py", "FLASK_APP": "backend/main.py",
"FLASK_ENV": "development", "FLASK_ENV": "development",
"FLASK_DEBUG": "1" "FLASK_DEBUG": "1"
}, },
+1 -1
View File
@@ -6,7 +6,7 @@
{ {
"label": "versiondump", "label": "versiondump",
"type": "shell", "type": "shell",
"command": "echo \"$(git rev-parse --abbrev-ref HEAD)-$(git describe)\"> ${workspaceFolder}/backend/app/.version", "command": "echo \"$(git rev-parse --abbrev-ref HEAD)-$(git describe)\"> ${workspaceFolder}/backend/.version",
"problemMatcher": [] "problemMatcher": []
} }
] ]
+1
View File
@@ -0,0 +1 @@
web: gunicorn backend/main:app
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -6,7 +6,7 @@ import os
import json import json
from flask_basicauth import BasicAuth from flask_basicauth import BasicAuth
from helpers import nocache from helpers import nocache
app = Flask(__name__, static_url_path='/static') app = Flask("backend", static_url_path='/static')
basic_auth = BasicAuth(app) basic_auth = BasicAuth(app)
accept_entries = False accept_entries = False
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.