Skip to content

Commit

Permalink
fix: database URI
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbpro committed May 8, 2021
1 parent 3e74110 commit 458f478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# creates Flask application
app = Flask(__name__)

# sets up LOCAL environment
# sets up MAIN environment
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data.db' # local db file
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL').replace("://", "ql://", 1)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.secret_key = 'rebequinha'

Expand Down

0 comments on commit 458f478

Please sign in to comment.