pub / ktistec-tweaks

Tweaks for the ActivityPub server ktistec
git clone https://src.jayvii.de/pub/ktistec-tweaks.git
Home | Log | Files | Exports | Refs | Submodules | README | RSS

commit b8ee266809693dcfeaa6315e684313888c32306b
parent 1a7b0dbc3b4b49cf5aa1b52a913d0aecdebfb29e
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 20 Jul 2024 10:18:58 +0200

feat: add deployment instructions

Diffstat:
MREADME.md | 37++++++++++++++++++++++++++++++++++---
1 file changed, 34 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -7,11 +7,42 @@ Please send patches or remarks to ## CSS -Place the minified `purpleish.min.css` in the `/app/public/3rd/` directory and -at **AT THE START OF** `/app/public/3rd/semantic-2.4.1.min.css`: +Minify CSS: + +```bash +make minify-css +``` + +Place the minified `purpleish.min.css` in the `public/3rd/` directory and +at **AT THE START OF** `public/3rd/semantic-2.4.1.min.css`: ```css -@import url("purpleish.min.css"); +@import url('purpleish.min.css'); /* ... rest of the file's content */ ``` + +### tl;dr + +Manual installation: + +```bash +KTISTEC_PATH="/var/www/ktistec" +KTISTEC_CSS="${KTISTEC_PATH}/public/3rd" +cp ./css/purpleish.min.css ${KTISTEC_CSS}/ +echo "@import url('purpleish.min.css');" > ${KTISTEC_CSS}/tmp +cat ${KTISTEC_CSS}/semantic-*.min.css >> ${KTISTEC_CSS}/tmp +mv ${KTISTEC_CSS}/tmp ${KTISTEC_CSS}/semantic-*.min.css +``` + +Docker: + +```bash +docker cp ./css/purpleish.min.css ktistec:/app/public/3rd/purpleish.min.css +docker exec -ti ktistec \ + sh -c " + echo \"@import url('purpleish.min.css');\" > /app/public/3rd/tmp && \ + cat /app/public/3rd/semantic*.css >> /app/public/3rd/tmp && \ + mv /app/public/3rd/tmp /app/public/3rd/semantic-*.min.css + " +```