From d6c203b570b560f47dcb68ed750c857b78cd80b9 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Thu, 29 Jul 2021 16:06:07 +0200 Subject: [PATCH] Update Python version and activate env on init. --- run.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/run.sh b/run.sh index 2d50f25e..d03118b5 100755 --- a/run.sh +++ b/run.sh @@ -16,10 +16,10 @@ docker="false" # - docker:build # - docker:push # - docker:serve -# +# -if [[ $* =~ ^(init|dev|prod|test|build|push|serve)$ ]]; then - mode=$1 +if [[ $* =~ ^(init|dev|prod|test|build|push|serve)$ ]]; then + mode=$1 fi if [[ "$1" == *"docker:"* ]]; then @@ -41,7 +41,9 @@ if [[ $docker == "false" ]]; then if [[ $mode == "init" ]]; then echo "Creating Python VirtualEnvironment" - virtualenv -p python3.6 python + virtualenv -p python3.8 python + echo "Activate Environment" + source python/bin/activate echo "Install dependencies" pip3 install -r requirements.txt echo "Next you need to create the configuration, run fixtues, migrations and create a superuser." -- GitLab