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 ...@@ -61,21 +61,15 @@ if [[ $docker == "false" ]]; then
### Initializes the project (Development) ### ### Initializes the project (Development) ###
if [[ $mode == "init" ]]; then if [[ $mode == "init" ]]; then
echo "Creating Python VirtualEnvironment" echo "Installing dependencies with Poetry"
python3.8 -m venv python poetry install --no-root
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."
fi fi
### Runs Steering in development mode (Virtualenv) ### ### Runs Steering in development mode (Virtualenv) ###
if [[ $mode == "dev" ]]; then if [[ $mode == "dev" ]]; then
echo "Activating Python Environment" echo "Activating Python Environment"
source python/bin/activate poetry run python manage.py runserver
python manage.py runserver
fi fi
### Runs Steering in production mode (WSGI) ### ### Runs Steering in production mode (WSGI) ###
......
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