hugo, print out the baseurl to see if there are any issues with passing it to the subjobs.
This commit is contained in:
1 parent
c80f5b55ce
commit
c79e036fa6
2 files changed
+6
No files matched your search
@@ -6,6 +6,8 @@ FORCE="$1"
|
||||
BASEURL="$2"
|
||||
|
||||
echo "*** Running cronjob @ `date` ***"
|
||||
echo "FORCE=$FORCE"
|
||||
echo "BASEURL=$BASEURL"
|
||||
|
||||
# Pull any updates, and if the project is already up to date, exit successfully.
|
||||
git pull | grep -v "up to date"
|
||||
@@ -17,7 +19,9 @@ if [[ $status != 0 && -e /var/www/html/index.html && -z $FORCE ]]; then
|
||||
fi
|
||||
|
||||
# If the project was not already up to date, build the new files for NGINX.
|
||||
set -x
|
||||
/usr/local/bin/hugo $BASEURL --gc --minify
|
||||
set +x
|
||||
status="$?"
|
||||
echo "* Hugo status is '$status', FORCE is '$FORCE'."
|
||||
if [[ $status == 0 && -e public/index.html ]]; then
|
||||
|
||||
Reference in new issue
Block a user