mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Fixes uwsgi deployment
This commit is contained in:
@@ -32,7 +32,7 @@ class Config(object):
|
|||||||
|
|
||||||
http://flask-sqlalchemy.pocoo.org/2.1/config/#configuration-keys
|
http://flask-sqlalchemy.pocoo.org/2.1/config/#configuration-keys
|
||||||
'''
|
'''
|
||||||
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///{}/ctfd.db'.format(os.path.dirname(__file__))
|
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///{}/ctfd.db'.format(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user