mirror of
https://github.com/simple-login/app.git
synced 2025-02-20 22:02:54 +08:00
set SERVER_NAME required by tests
This commit is contained in:
parent
70e4f8b6e6
commit
32d6af228b
2 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,7 @@ else:
|
|||
load_dotenv()
|
||||
|
||||
|
||||
SERVER_NAME = os.environ["SERVER_NAME"]
|
||||
URL = os.environ["URL"]
|
||||
print("URL:", URL)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue