¡Hyperling.com 2.0! #16

Merged
me merged 75 commits from dev into main 2025-10-14 14:54:55 -07:00
Showing only changes of commit 51b2ebf8e6 - Show all commits

View File

@@ -8,6 +8,14 @@ DIR="$(dirname -- "${BASH_SOURCE[0]}")"
PROG="$(basename -- "${BASH_SOURCE[0]}")"
echo "$DIR/$PROG"
function reload-project {
# Do not kill program, just use the new files and if run.sh or main.js were
# changed then they can get reloaded manually or by the nightly backup.
echo "Done!"
## Kill node.js which will complete run.sh and restart any Docker containers.
#pkill node
}
echo "*** Running cronjob @ `date` ***"
cd $DIR
@@ -19,8 +27,7 @@ if [[ $status != 0 ]]; then
echo "* Site is already up to date, exiting."
exit 0
else
# Kill node.js which will complete run.sh and restart any Docker containers.
pkill node
reload-project
fi
exit 0