Compare commits

..
2 Commits
2 changed files with 7 additions and 4 deletions

No files matched your search

+3 -1
View File
@@ -25,7 +25,9 @@ function kill-project {
}
function reload-project {
# Nothing to do, run.sh and main.js automatically uses the latest files.
# Not much to do, run.sh and main.js automatically uses the latest files.
rm -v files/photos/index.html
# TBD/TODO: Call check_photos.sh once it has been pulled from run.sh.
log "Project reloaded successfully!"
}
+4 -3
View File
@@ -123,6 +123,7 @@ log "Removing old index files."
find files/photos/ -name "*".html -print -delete
{
check_main photos
# TBD/TODO: Move this section to check_photos.sh similar to check_git.sh.
count=1
http_code=0
port="${ports%% *}"
@@ -148,10 +149,10 @@ find files/photos/ -name "*".html -print -delete
## Main ##
log "Start local cronjob."
log "Start check_git."
while true; do
check_main cronjob
$DIR/cronjob.sh
check_main check_git
$DIR/check_git.sh
sleep 30
done &