Skip to content

Commit aee4758

Browse files
debug default=FLASK_DEBUG
1 parent 53c5e2b commit aee4758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/opengeodeweb_back/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def run_server() -> None:
115115
parser.add_argument(
116116
"-d",
117117
"--debug",
118-
default=True,
118+
default=FLASK_DEBUG,
119119
help="Whether to run in debug mode",
120120
action="store_true",
121121
)
@@ -149,7 +149,7 @@ def run_server() -> None:
149149
app.config.update(DATA_FOLDER_PATH=args.data_folder_path)
150150
app.config.update(UPLOAD_FOLDER=args.upload_folder_path)
151151
app.config.update(MINUTES_BEFORE_TIMEOUT=args.timeout)
152-
flask_cors.CORS(app, origins=args.allowed_origins, methods=["GET", "POST", "PUT"])
152+
flask_cors.CORS(app, origins=args.allowed_origins)
153153
print(
154154
f"Host: {args.host}, Port: {args.port}, Debug: {args.debug}, "
155155
f"Data folder path: {args.data_folder_path}, Timeout: {args.timeout}, "

0 commit comments

Comments
 (0)