Skip to content
Snippets Groups Projects
Commit 1e88eca1 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Use Poetry for the rest

parent 7473dd7c
No related branches found
No related tags found
No related merge requests found
......@@ -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) ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment