WebHost: On-Server rolling

This commit is contained in:
Fabian Dill
2020-08-02 22:11:52 +02:00
parent cfb8e2ce71
commit 22abd09087
13 changed files with 330 additions and 87 deletions

View File

@@ -42,6 +42,7 @@ app.config["PONY"] = {
'filename': os.path.abspath('db.db3'),
'create_db': True
}
app.config["MAX_ROLL"] = 20
app.config["CACHE_TYPE"] = "simple"
app.autoversion = True
av = Autoversion(app)
@@ -133,5 +134,6 @@ def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'),
'favicon.ico', mimetype='image/vnd.microsoft.icon')
from WebHostLib.customserver import run_server_process
from . import tracker, upload, landing, check # to trigger app routing picking up on it
from . import tracker, upload, landing, check, generate # to trigger app routing picking up on it