Refactor how the project is run, using nginx
instead of hugo server
, a cron job to pull git changes, and a start script to ensure the correct services are started each run and are monitored to stay up.
This commit is contained in:
10
Config/HugoExample/files/hugo.cronjob.sh
Normal file
10
Config/HugoExample/files/hugo.cronjob.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd /var/www/hugo/site
|
||||
|
||||
git pull
|
||||
|
||||
hugo --gc --minify
|
||||
|
||||
rm -rfv /var/www/html/*
|
||||
cp -rfv public/* /var/www/html/
|
Reference in New Issue
Block a user