husseinelsaadi commited on
Commit
2af664a
·
1 Parent(s): 4741385
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ app.config['REMEMBER_COOKIE_SAMESITE'] = 'None'
59
  app.config['REMEMBER_COOKIE_SECURE'] = True
60
 
61
  # Configure the database connection
62
- app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/codingo.db'
63
  app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
64
 
65
  # Create necessary directories in writable locations
 
59
  app.config['REMEMBER_COOKIE_SECURE'] = True
60
 
61
  # Configure the database connection
62
+ app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("DATABASE_URL")
63
  app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
64
 
65
  # Create necessary directories in writable locations