Go to file
2024-05-23 03:51:29 +00:00
backend CSRF $#%?@!!. Also konami to django admin 2023-08-03 20:11:45 +02:00
frontend Adjust for jenova 2024-05-23 03:51:29 +00:00
templates Fix dockerfile and add a quick test 2023-07-03 15:12:06 +02:00
.gitignore Update .gitignore 2023-07-03 16:35:32 +02:00
Dockerfile Now deployable 2023-07-03 19:56:32 +02:00
nginx_locations Add example system config files 2023-08-03 18:00:27 +02:00
README.md Update README 2023-07-03 20:02:09 +02:00
zetikettes.service Add example system config files 2023-08-03 18:00:27 +02:00

zetikettes

ouaich.

Initial setup

docker build -t zetikettes .

Nginx is configured to:

  • redirect /zetikettes/srv/ to localhost:8000
  • redirect /zetikettes/ to /var/lib/zetikettes/static

Conf is in /etc/nginx/sites-available/default

Test

docker run --rm -it -v $PWD/templates:/data zetikettes /bin/bash /root/zetikettes/old/mkjam.sh

This should produce a .pdf in templates/. Open it to check that layout & fonts are correct.

Run

docker run -d --rm -p 127.0.0.1:8000:8000 -v /var/lib/zetikettes/templates:/data zetikettes

Notes for deploying

.h3 Initialize empty database

python manage.py migrate

.h3 Prepare static files

python manage.py collectstatic

The files will be in www_static/ and need to be moved to /var/lib/zetikettes/www_static

.h3 Change host settings If not deploying on aerith.ponteilla.net, you'll need to edit backend/zetikettes/zetikettes/settings.py to change a couple things in there.

Change available templates

  1. go to /zetikettes/admin
  2. add the newtikette
  3. still no need to restart the container (magic!)
  4. profit.