From f9a52d74b289e19092b4abacdbc2c81798accc2e Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Tue, 12 Jul 2022 12:23:31 +0200 Subject: [PATCH] Add README.md --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ca36e28 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +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 + +Run +--- + +``` +docker run -d --rm -p 8000:8000 -v /var/lib/zetikettes/templates:/data zetikettes +``` + +Change available templates +-------------------------- + +1. make or update templates +1. add them to tempaltes/ +1. update static/zetikettes.js +1. git commit && git push +1. update /var/lib/zetikettes +1. no need to restart the container (magic!) +2. profit.