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:
parent
5c5c632165
commit
7551054bd5
@ -12,6 +12,9 @@ class Base():
|
||||
TESTING = False
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||
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):
|
||||
@ -27,6 +30,3 @@ class Development(Base):
|
||||
TESTING = True
|
||||
DOMAIN = 'http://localhost'
|
||||
SECRET_KEY = urandom(24).hex()
|
||||
UPLOAD_FOLDER_COVER = join(BASEDIR, 'cover')
|
||||
UPLOAD_FOLDER = join(BASEDIR, 'uploads')
|
||||
LIGHT = not isdir(UPLOAD_FOLDER)
|
||||
|
Loading…
Reference in New Issue
Block a user