From 1e88eca1a1fbc50232af5f287aaa9e70b4be2883 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Mon, 26 Sep 2022 19:54:01 -0400 Subject: [PATCH] Use Poetry for the rest --- run.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/run.sh b/run.sh index f7008541..d97be642 100755 --- a/run.sh +++ b/run.sh @@ -61,21 +61,15 @@ if [[ $docker == "false" ]]; then ### Initializes the project (Development) ### if [[ $mode == "init" ]]; then - echo "Creating Python VirtualEnvironment" - python3.8 -m venv 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 fixtures, migrations and create a superuser." + echo "Installing dependencies with Poetry" + poetry install --no-root fi ### Runs Steering in development mode (Virtualenv) ### if [[ $mode == "dev" ]]; then echo "Activating Python Environment" - source python/bin/activate - python manage.py runserver + poetry run python manage.py runserver fi ### Runs Steering in production mode (WSGI) ### -- GitLab