yig/Makefile

20 lines
543 B
Makefile
Raw Permalink Normal View History

prod: # execute this target on the production server in the nix-shell
cd franklincce; python3 manage.py collectstatic
2024-06-29 15:48:06 -05:00
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
2024-06-29 15:48:06 -05:00
permissions: db.sqlite3
chmod -f 660 db.sqlite3
2024-06-29 15:48:06 -05:00
echo "make sure that db.sqlite3 is owned by group users"
db.sqlite3:
touch db.sqlite3
make_kb:
sh gen_kb.sh
clean:
rm -fr franklincce/staticfiles
docker-compose -f docker-compose.prod.yml down -v