|
|
@ -1,40 +1,17 @@ |
|
|
#!/usr/bin/env bash |
|
|
#!/usr/bin/env bash |
|
|
set -euo pipefail |
|
|
set -euo pipefail |
|
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
======= |
|
|
|
|
|
# cat docker/settings_local.template.py | envsubst > re2o/settings_local.py |
|
|
|
|
|
cp docker/settings_local.template.py re2o/settings_local.py |
|
|
|
|
|
|
|
|
|
|
|
>>>>>>> 33bacb65 (Add decouple) |
|
|
|
|
|
======= |
|
|
|
|
|
# cat docker/settings_local.template.py | envsubst > re2o/settings_local.py |
|
|
|
|
|
cp docker/settings_local.template.py re2o/settings_local.py |
|
|
|
|
|
|
|
|
|
|
|
======= |
|
|
|
|
|
>>>>>>> ab75f416 (Change the way the dev docker works) |
|
|
|
|
|
>>>>>>> 907fc353 (Change the way the dev docker works) |
|
|
|
|
|
cp -n cotisations/templates/cotisations/invoice.html templates/default_invoice.html |
|
|
cp -n cotisations/templates/cotisations/invoice.html templates/default_invoice.html |
|
|
cp -n cotisations/templates/cotisations/voucher.html templates/default_voucher.html |
|
|
cp -n cotisations/templates/cotisations/voucher.html templates/default_voucher.html |
|
|
|
|
|
|
|
|
AUTOMIGRATE=${AUTOMIGRATE:-yes} |
|
|
AUTOMIGRATE=${AUTOMIGRATE:-yes} |
|
|
|
|
|
|
|
|
if [ "$AUTOMIGRATE" != "skip" ]; then |
|
|
if [ "$AUTOMIGRATE" != "skip" ]; then |
|
|
<<<<<<< HEAD |
|
|
|
|
|
poetry run python manage.py migrate --noinput |
|
|
poetry run python manage.py migrate --noinput |
|
|
======= |
|
|
|
|
|
poetry run python3 manage.py migrate --noinput |
|
|
|
|
|
>>>>>>> a62566ef (premier essai) |
|
|
|
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
poetry run python manage.py collectstatic |
|
|
poetry run python manage.py collectstatic |
|
|
poetry run python manage.py compilemessages |
|
|
poetry run python manage.py compilemessages |
|
|
======= |
|
|
|
|
|
poetry run python3 manage.py collectstatic |
|
|
|
|
|
poetry run python3 manage.py compilemessages |
|
|
|
|
|
>>>>>>> a58d4dca (update pip requirements) |
|
|
|
|
|
|
|
|
|
|
|
cat <<EOF | poetry run python manage.py shell |
|
|
cat <<EOF | poetry run python manage.py shell |
|
|
from django.contrib.auth import get_user_model |
|
|
from django.contrib.auth import get_user_model |
|
|
@ -44,4 +21,4 @@ User = get_user_model() |
|
|
User.objects.filter(pseudo='$SUPERUSER_LOGIN').exists() or \ |
|
|
User.objects.filter(pseudo='$SUPERUSER_LOGIN').exists() or \ |
|
|
User.objects.create_superuser(pseudo='$SUPERUSER_LOGIN', email='$SUPERUSER_EMAIL', password='$SUPERUSER_PASS', surname='$SUPERUSER_LOGIN') |
|
|
User.objects.create_superuser(pseudo='$SUPERUSER_LOGIN', email='$SUPERUSER_EMAIL', password='$SUPERUSER_PASS', surname='$SUPERUSER_LOGIN') |
|
|
EOF |
|
|
EOF |
|
|
poetry run python manage.py runserver 0.0.0.0:8000 |
|
|
poetry run python manage.py runserver 0.0.0.0:8000 |
|
|
|