From 8944e33cbef267d2f4e1c68c208d5316e949d78a Mon Sep 17 00:00:00 2001 From: Jarmil Date: Tue, 1 Oct 2019 10:29:55 +0200 Subject: [PATCH] FIX: spousteci skripty --- src/run-venv.sh | 12 ++++++++++++ src/run.sh | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 src/run-venv.sh diff --git a/src/run-venv.sh b/src/run-venv.sh new file mode 100755 index 0000000..f084f6e --- /dev/null +++ b/src/run-venv.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# spousti nalodeni v jiz inicializovanem virtualenv +# pomocny skript pro potreby ladeni, v provozu se nepouziva (misto toho jede v dockeru) + +source ../venv/bin/activate + +if [[ "x$1" == "x+" ]]; then + ./manage.py runserver_plus 127.0.0.1:8010 +else + ./manage.py runserver --insecure 127.0.0.1:8010 +fi diff --git a/src/run.sh b/src/run.sh index 7b17a7f..97858e7 100755 --- a/src/run.sh +++ b/src/run.sh @@ -1,7 +1,5 @@ #!/bin/bash -source ../venv/bin/activate - if [[ "x$1" == "x+" ]]; then ./manage.py runserver_plus 127.0.0.1:8010 else