Skip to content

Commit

Permalink
Change config sqlalchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
PhungXuanAnh committed Jan 18, 2020
1 parent 2a0ac13 commit 3b10de6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/app/main/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class DevelopmentConfig(Config):
# SQLALCHEMY_DATABASE_URI = DATABASE_URL

# # This configs for deploy on heroku
# SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
# SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', DATABASE_URL)


class TestingConfig(Config):
Expand All @@ -173,7 +173,7 @@ class TestingConfig(Config):
# SQLALCHEMY_DATABASE_URI = DATABASE_URL

# # This configs for deploy on heroku
# SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', DATABASE_URL)


class ProductionConfig(Config):
Expand Down

0 comments on commit 3b10de6

Please sign in to comment.