Fix dockerfile and add a quick test
See readme for instructions
This commit is contained in:
14
README.md
14
README.md
@@ -17,17 +17,27 @@ Nginx is configured to:
|
||||
|
||||
Conf is in /etc/nginx/sites-available/default
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
```
|
||||
docker run --rm -it -v $PWD/templates:/data zetikettes /bin/bash /root/zetikettes/mkjam.sh
|
||||
```
|
||||
|
||||
This should produce a .pdf in `templates/`. Open it to check that
|
||||
layout & fonts are correct.
|
||||
|
||||
Run
|
||||
---
|
||||
|
||||
```
|
||||
docker run -d --rm -p 8000:8000 -v /var/lib/zetikettes/templates:/data zetikettes
|
||||
docker run -d --rm -p 127.0.0.1:8000:8000 -v /var/lib/zetikettes/templates:/data zetikettes
|
||||
```
|
||||
|
||||
Change available templates
|
||||
--------------------------
|
||||
|
||||
1. go to /zetikettes/newtikette.html
|
||||
1. go to /zetikettes/newtikette.html or konami code from main app
|
||||
1. add the newtikette
|
||||
1. still no need to restart the container (magic!)
|
||||
2. profit.
|
||||
|
||||
Reference in New Issue
Block a user