remove RESET_DB config
This commit is contained in:
parent
888de34a69
commit
1384ccc459
|
@ -45,7 +45,6 @@ if config_file:
|
|||
else:
|
||||
load_dotenv()
|
||||
|
||||
RESET_DB = "RESET_DB" in os.environ
|
||||
COLOR_LOG = "COLOR_LOG" in os.environ
|
||||
|
||||
# Allow user to have 1 year of premium: set the expiration_date to 1 year more
|
||||
|
|
|
@ -74,9 +74,6 @@ EMAIL_SERVERS_WITH_PRIORITY=[(10, "email.hostname.")]
|
|||
# the DKIM private key used to compute DKIM-Signature
|
||||
# DKIM_PRIVATE_KEY_PATH=local_data/dkim.key
|
||||
|
||||
# delete and recreate the sqlite database, for local development
|
||||
RESET_DB=true
|
||||
|
||||
# DB Connection
|
||||
# Local SQLite database
|
||||
DB_URI=sqlite:///db.sqlite
|
||||
|
|
10
server.py
10
server.py
|
@ -49,7 +49,6 @@ from app.config import (
|
|||
URL,
|
||||
SHA1,
|
||||
PADDLE_MONTHLY_PRODUCT_ID,
|
||||
RESET_DB,
|
||||
FLASK_PROFILER_PATH,
|
||||
FLASK_PROFILER_PASSWORD,
|
||||
SENTRY_FRONT_END_DSN,
|
||||
|
@ -951,15 +950,6 @@ def local_main():
|
|||
app.debug = True
|
||||
DebugToolbarExtension(app)
|
||||
|
||||
# warning: only used in local
|
||||
if RESET_DB:
|
||||
from init_app import add_sl_domains
|
||||
|
||||
LOG.warning("reset db, add fake data")
|
||||
with app.app_context():
|
||||
fake_data()
|
||||
add_sl_domains()
|
||||
|
||||
app.run(debug=True, port=7777)
|
||||
|
||||
# uncomment to run https locally
|
||||
|
|
|
@ -14,8 +14,6 @@ MAX_NB_EMAIL_FREE_PLAN=3
|
|||
EMAIL_SERVERS_WITH_PRIORITY=[(10, "email.hostname.")]
|
||||
DKIM_PRIVATE_KEY_PATH=local_data/dkim.key
|
||||
|
||||
# Database
|
||||
RESET_DB=true
|
||||
DB_URI=postgresql://test:test@localhost:5432/test
|
||||
|
||||
# Flask
|
||||
|
|
Loading…
Reference in New Issue