zetikettes/README.md

44 lines
758 B
Markdown
Raw Normal View History

2022-07-12 10:23:31 +00: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
----
```
2023-07-03 14:56:58 +00:00
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.
2022-07-12 10:23:31 +00:00
Run
---
```
docker run -d --rm -p 127.0.0.1:8000:8000 -v /var/lib/zetikettes/templates:/data zetikettes
2022-07-12 10:23:31 +00:00
```
Change available templates
--------------------------
2023-07-03 14:56:58 +00:00
1. go to /zetikettes/admin
1. add the newtikette
1. still no need to restart the container (magic!)
2022-07-12 10:23:31 +00:00
2. profit.