diff options
| -rw-r--r-- | Makefile | 24 | ||||
| -rw-r--r-- | content/snippets/convert-losless.md (renamed from content/journal/convert-losless.md) | 0 | ||||
| -rw-r--r-- | content/snippets/disk-usage.md (renamed from content/journal/disk-usage.md) | 0 | ||||
| -rw-r--r-- | content/snippets/my-ip.md (renamed from content/journal/my-ip.md) | 0 | ||||
| -rw-r--r-- | content/snippets/screen-off.md (renamed from content/journal/screen-off.md) | 0 | ||||
| -rw-r--r-- | content/snippets/ssh-force-password-authentification.md (renamed from content/journal/ssh-force-password-authentification.md) | 0 | ||||
| -rw-r--r-- | content/snippets/tar-usage.md (renamed from content/journal/tar-usage.md) | 0 |
7 files changed, 24 insertions, 0 deletions
@@ -40,3 +40,27 @@ serve: test: export HUGO_TEST=1 && hugo --ignoreCache --verbose=false + +buildmoehring: clean + @# Concat all CSS files + gulp concat + @# Build the HTML the first time to be ... + HUGO_GULP=0 hugo --baseURL=https://www.moehring.guru/ --ignoreCache --log=true --logFile=./log/hugo.log --verbose=false #1>/dev/null + @# ... spidered by uncss to remove the unnecessary selector rules. + gulp uncss + @# Builds the site again, but this time the minified CSS will be inlined by Hugo. + HUGO_GULP=1 hugo --baseURL=https://www.moehring.guru/ --ignoreCache --log=true --logFile=./log/hugo.log --verbose=false 1>/dev/null + @# Minifies the HTML! + gulp minifyhtml + @# Cleans up. + rm -rf public/gulp.css/ + rm -f public/*.css + +deploymoehring: buildmoehring + @# Deploy to the server! + if [ -d /var/www/www.moehring.guru ]; then\ + ( rsync --delete -avz public/ /var/www/www.moehring.guru/ 1>/dev/null 2>/dev/null && \ + echo "Success: Site www.moehring.guru was built.") || ./error.sh; \ + else \ + rsync --delete -avze ssh public/ online:/var/www/www.moehring.guru/; \ + fi diff --git a/content/journal/convert-losless.md b/content/snippets/convert-losless.md index 0fc4042..0fc4042 100644 --- a/content/journal/convert-losless.md +++ b/content/snippets/convert-losless.md diff --git a/content/journal/disk-usage.md b/content/snippets/disk-usage.md index 15920b3..15920b3 100644 --- a/content/journal/disk-usage.md +++ b/content/snippets/disk-usage.md diff --git a/content/journal/my-ip.md b/content/snippets/my-ip.md index 2e4cebd..2e4cebd 100644 --- a/content/journal/my-ip.md +++ b/content/snippets/my-ip.md diff --git a/content/journal/screen-off.md b/content/snippets/screen-off.md index 3e45e77..3e45e77 100644 --- a/content/journal/screen-off.md +++ b/content/snippets/screen-off.md diff --git a/content/journal/ssh-force-password-authentification.md b/content/snippets/ssh-force-password-authentification.md index 9fd1313..9fd1313 100644 --- a/content/journal/ssh-force-password-authentification.md +++ b/content/snippets/ssh-force-password-authentification.md diff --git a/content/journal/tar-usage.md b/content/snippets/tar-usage.md index d7a8aa9..d7a8aa9 100644 --- a/content/journal/tar-usage.md +++ b/content/snippets/tar-usage.md |
