diff --git a/run.sh b/run.sh index 2d50f25e71ed9cdba2db0e96d08692992706628e..d03118b56a033a67a6936bc42a25599b249bec6b 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."