Skip to content
Snippets Groups Projects
Commit d6c203b5 authored by David Trattnig's avatar David Trattnig
Browse files

Update Python version and activate env on init.

parent fe354336
No related branches found
No related tags found
1 merge request!14Topic/explicit python env
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment