fix: make deployment promptless

This commit is contained in:
stupidcomputer 2024-07-30 17:03:03 -05:00
parent 90e01d921f
commit fad0b668fa
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
prod: # execute this target on the production server in the nix-shell
cd franklincce; python3 manage.py collectstatic
cd franklincce; yes yes | python3 manage.py collectstatic
sh gen_kb.sh
sed "s|change_me|$(shell dd if=/dev/urandom bs=1024 count=1|base64)|g" .env.prod.orig > .env.prod
docker-compose -f docker-compose.prod.yml up -d --build