From 1df5af3d3ff8a58960a92c13b57d125b6280c578 Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Tue, 23 Aug 2022 17:25:23 +0200 Subject: [PATCH] Upgrade Flasku: FLASK_APP a FLASK_ENV jsou deprecated --- bin/flask | 5 +---- mo-api-test/flask | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/flask b/bin/flask index 08512cbc..4c137f61 100755 --- a/bin/flask +++ b/bin/flask @@ -1,5 +1,2 @@ #!/bin/sh -export FLASK_APP=mo.web -export FLASK_ENV=development -flask "$@" - +exec flask --app mo.web --debug "$@" diff --git a/mo-api-test/flask b/mo-api-test/flask index 3413f0b0..d5611172 100755 --- a/mo-api-test/flask +++ b/mo-api-test/flask @@ -1,4 +1,2 @@ #!/bin/sh -export FLASK_APP=app -export FLASK_ENV=development -flask "$@" +exec flask --app app --debug "$@" -- GitLab