set SERVER_NAME required by tests

This commit is contained in:
Son NK 2019-07-12 11:35:00 +02:00 committed by Son NK
parent 70e4f8b6e6
commit 32d6af228b
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ else:
load_dotenv()
SERVER_NAME = os.environ["SERVER_NAME"]
URL = os.environ["URL"]
print("URL:", URL)

View File

@ -22,6 +22,7 @@ from app.config import (
SHA1,
LYRA_ANALYTICS_ID,
STRIPE_SECRET_KEY,
SERVER_NAME,
)
from app.dashboard.base import dashboard_bp
from app.developer.base import developer_bp
@ -49,6 +50,8 @@ def create_app() -> Flask:
app = Flask(__name__)
app.url_map.strict_slashes = False
app.config["SERVER_NAME"] = SERVER_NAME
app.config["SQLALCHEMY_DATABASE_URI"] = DB_URI
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
app.secret_key = FLASK_SECRET