2024-06-28 16:00:59 -05:00
|
|
|
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
|
2024-06-28 16:42:00 -05:00
|
|
|
sed "s|change_me|$(shell dd if=/dev/urandom bs=1024 count=1|base64)|g" .env.prod.orig > .env.prod
|
2024-06-28 16:00:59 -05:00
|
|
|
docker-compose -f docker-compose.prod.yml up -d --build
|
2024-06-28 17:04:45 -05:00
|
|
|
|
2024-06-29 15:48:06 -05:00
|
|
|
permissions: db.sqlite3
|
2024-06-28 17:04:45 -05:00
|
|
|
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
|