diff --git a/run.sh b/run.sh index f70085410c85115bcd5d4684b69fc22e53964fb6..d97be642c6af7b2fb67e87445d9587bbce312b1d 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) ###