summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>2025-06-27 11:25:00 +0200
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>2025-06-27 11:25:00 +0200
commite43d65b9935650e99ed3c4de11b0f8d65fea2694 (patch)
tree244840ceb255cd8acf827a432719ec7e31c1fe4b
parent4ebbd24cae3ecb3514221813b9d1b26f7aa30429 (diff)
update help: website is now rebuild when repository is changedHEADmaster
-rw-r--r--content/help.md25
1 files changed, 8 insertions, 17 deletions
diff --git a/content/help.md b/content/help.md
index 0d1f3f1..96225f6 100644
--- a/content/help.md
+++ b/content/help.md
@@ -4,18 +4,18 @@ title = "Help"
# SillaB Website
-This website is rendered as static html with [hugo](https://gohugo.io). The SillaB hugo project is at https://caeis.etech.fh-augsburg.de/beckmanf/sillab.git. The website itself is hosted at
+This website is rendered as static html with [hugo](https://gohugo.io). The SillaB hugo project is at http://fredowski.duckdns.org/cgit.cgi/sillab.git. The website itself is hosted at
* http://fredowski.duckdns.org
# Test the website
-#### Install hugo and rsync via homebrew
+#### Install hugo via homebrew
-You need the hugo software to render the website. The software is available via [homebrew](https://brew.sh). The rsync software is used to transfer the web data to the webserver.
+You need the hugo software to render the website. The software is available via [homebrew](https://brew.sh).
```
-brew install hugo rsync
+brew install hugo
```
#### Download or update the git repository
@@ -24,7 +24,7 @@ If you run this the first time, you need to download the git repository with the
```
cd
-git clone https://caeis.etech.fh-augsburg.de/beckmanf/sillab.git
+git clone gitolite3@fredowski.duckdns.org:sillab
```
If you have the repository already on your computer, just update to see if some changes are on the server that you have not.
@@ -89,8 +89,6 @@ Copy the file "schiffe.jpg" to the [assets/img](https://caeis.etech.fh-augsburg.
To add an mpeg4 audio file use the following code in the markdown file:
-
-
```
{{</* audio
src="/audio/LandUnter.m4a"
@@ -98,7 +96,6 @@ To add an mpeg4 audio file use the following code in the markdown file:
*/>}}
```
-
in the markdown file. Copy the audio file to "static/audio" directory. It will be copied by hugo to the final "public/audio" directory.
#### Add a video file
@@ -124,16 +121,10 @@ The "hugo build" command will compile the static html files and copy them togeth
hugo build
```
-#### Upload the files to the webserver
-
-Copy the files in the folder "public" via "rsync" to the webserver.
-
-```
-/opt/homebrew/bin/rsync -rphv --chmod=D775,F664 --groupmap=*:www --delete public/ silke@fredowski.duckdns.org:/var/www
-```
-
#### Upload your changes to the git repository
+The website is rebuild automagically on the server when you upload your changes to the git repository.
+
Assume you have added a post by creating a new markdown file "posts/shadesofblue/220631-lecoq.md" with a new image file "assets/img/silkepiano.jpg". You can see which files you have changed and which you have added with:
```
@@ -167,5 +158,5 @@ git push
You can then see your commit on the server
-https://caeis.etech.fh-augsburg.de/beckmanf/sillab.git/log/
+http://fredowski.duckdns.org/cgit.cgi/sillab.git/log/