Move upload folder to static defaults.

I can configure this path on the SyncThing side, so it is
fine for it to be in the application source folder for now.

Potentially easier to arrange backup as well.
This commit is contained in:
Luke Murphy 2018-11-18 18:45:23 +01:00
parent 5c5c632165
commit 7551054bd5
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -12,6 +12,9 @@ class Base():
TESTING = False TESTING = False
SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'rqlite+pyrqlite://localhost:4001/' SQLALCHEMY_DATABASE_URI = 'rqlite+pyrqlite://localhost:4001/'
UPLOAD_FOLDER_COVER = join(BASEDIR, 'cover')
UPLOAD_FOLDER = join(BASEDIR, 'uploads')
LIGHT = not isdir(UPLOAD_FOLDER)
class Production(Base): class Production(Base):
@ -27,6 +30,3 @@ class Development(Base):
TESTING = True TESTING = True
DOMAIN = 'http://localhost' DOMAIN = 'http://localhost'
SECRET_KEY = urandom(24).hex() SECRET_KEY = urandom(24).hex()
UPLOAD_FOLDER_COVER = join(BASEDIR, 'cover')
UPLOAD_FOLDER = join(BASEDIR, 'uploads')
LIGHT = not isdir(UPLOAD_FOLDER)