Browse Source

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.
ansible-setup-and-deploy
Luke Murphy 5 years ago
parent
commit
7551054bd5
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 6
      xppl/config.py

6
xppl/config.py

@ -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…
Cancel
Save