Work snippets
Snippets I use on a day to day basis at my current job. Nothing useful to see here, just a place for me to store my snippets and not lose them.
init
init container
docker-compose up
run deprecated
Run containers if they're already build
docker-compose -f docker-compose.fsv.yml up
reload
Reload template changes
docker-compose -f docker-compose.fsv.yml restart web -t 1
web = container name
build new
Build all containers if they do not exist yet
SITE=fsv; docker-compose -f docker-compose.${SITE}.yml -p ${SITE} up --build
reindex
reindex
docker exec <web-container-name> /app/src/manage.py update_index
translate
generate translations
docker-compose exec web src/manage.py makemessages -a -v 3
Apply compiled translations
docker-compose exec web src/manage.py compilemessages -l nl
windows docker
Build on windows
$env:SITE = "fsv"; docker-compose -f "docker-compose.$env:SITE.yml" -p $env:SITE up