Skip to content

Commit

Permalink
feat: update pytition
Browse files Browse the repository at this point in the history
  • Loading branch information
johackim committed Jun 12, 2024
1 parent 0a751ad commit 23fafc3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions stacks/pytition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: '3.8'

services:
web:
image: ethibox/pytition:${VERSION:-2.6}
image: ethibox/pytition:${VERSION:-latest}
command:
- /bin/sh
- -c
Expand All @@ -15,7 +15,7 @@ services:
cp /code/pytition/pytition/settings/config_example.py /config/docker_config.py
touch /config/__init__.py
sed -i -e 's/localhost/'$$DOMAIN'/g' /config/docker_config.py
/code/dev/generate_docker_config.sh
pdm run /code/dev/generate_docker_config.sh
sed -i '/EMAIL_HOST/d' /config/docker_config.py
sed -i '/EMAIL_PORT/d' /config/docker_config.py
echo 'CSRF_TRUSTED_ORIGINS=["'$$CSRF_TRUSTED_ORIGINS'"]' >> /config/docker_config.py
Expand All @@ -25,10 +25,10 @@ services:
echo 'EMAIL_HOST_PASSWORD="'$$EMAIL_HOST_PASSWORD'"' >> /config/docker_config.py
echo 'EMAIL_USE_TLS='$$EMAIL_USE_TLS'' >> /config/docker_config.py
echo 'DEFAULT_FROM_EMAIL="'$$DEFAULT_FROM_EMAIL'"' >> /config/docker_config.py
python3 /code/pytition/manage.py migrate
python3 /code/pytition/manage.py collectstatic
python3 /code/pytition/manage.py compilemessages
python pytition/manage.py runserver 0.0.0.0:8000
pdm run python pytition/manage.py migrate
pdm run python pytition/manage.py collectstatic
pdm run python pytition/manage.py compilemessages
pdm run python pytition/manage.py runserver 0.0.0.0:8000
environment:
- EMAIL_HOST=${SMTP_HOST}
- EMAIL_PORT=${SMTP_PORT:-587}
Expand Down

0 comments on commit 23fafc3

Please sign in to comment.