Refactor for heroku

This commit is contained in:
Phillip Kühne 2022-07-15 02:07:40 +02:00
parent 95838885e7
commit 895dd14073
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA
20 changed files with 11 additions and 10 deletions

16
.vscode/launch.json vendored
View File

@ -8,11 +8,11 @@
"preLaunchTask": "versiondump",
"name": "Python: Flask",
"type": "python",
"cwd": "${workspaceFolder}/backend/app",
"cwd": "${workspaceFolder}/backend",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "backend/app/main.py",
"FLASK_APP": "backend/main.py",
"FLASK_ENV": "development",
"FLASK_DEBUG": "1"
},
@ -27,11 +27,11 @@
"preLaunchTask": "versiondump",
"name": "Python: Flask (with reload)",
"type": "python",
"cwd": "${workspaceFolder}/backend/app",
"cwd": "${workspaceFolder}/backend",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "backend/app/main.py",
"FLASK_APP": "backend/main.py",
"FLASK_ENV": "development",
"FLASK_DEBUG": "1"
},
@ -45,11 +45,11 @@
"preLaunchTask": "versiondump",
"name": "Python: Flask (with reload, externally reachable)",
"type": "python",
"cwd": "${workspaceFolder}/backend/app",
"cwd": "${workspaceFolder}/backend",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "backend/app/main.py",
"FLASK_APP": "backend/main.py",
"FLASK_ENV": "development",
"FLASK_DEBUG": "1"
},
@ -64,11 +64,11 @@
"preLaunchTask": "versiondump",
"name": "Python: Flask (externally reachable)",
"type": "python",
"cwd": "${workspaceFolder}/backend/app",
"cwd": "${workspaceFolder}/backend",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "backend/app/main.py",
"FLASK_APP": "backend/main.py",
"FLASK_ENV": "development",
"FLASK_DEBUG": "1"
},

2
.vscode/tasks.json vendored
View File

@ -6,7 +6,7 @@
{
"label": "versiondump",
"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": []
}
]

1
Procfile Normal file
View File

@ -0,0 +1 @@
web: gunicorn backend/main:app

View File

@ -6,7 +6,7 @@ import os
import json
from flask_basicauth import BasicAuth
from helpers import nocache
app = Flask(__name__, static_url_path='/static')
app = Flask("backend", static_url_path='/static')
basic_auth = BasicAuth(app)
accept_entries = False

View File

Before

Width:  |  Height:  |  Size: 318 B

After

Width:  |  Height:  |  Size: 318 B

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB