Fixes uwsgi deployment

This commit is contained in:
Kevin Chung
2017-05-11 23:26:00 -04:00
parent a10eec5688
commit b4d0d1ecab

View File

@@ -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__)))
''' '''