Skip to content

Commit

Permalink
[REAPP] Don't wait for commit trigger to restart the app
Browse files Browse the repository at this point in the history
We don't get that many non-app commits that it's a problem
to hot-restart the app on ANY commit and the commit trigger is
often forgotten, leading to extra commits being made just to update
the app.

Since update script and start-on-boot script are now identicall, I'm
tossing the start-on-boot script and will update cron to use the other
script on boot as well
  • Loading branch information
zoffixznet committed Sep 8, 2018
1 parent a12b057 commit 3d8a0f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
25 changes: 0 additions & 25 deletions start-rakudo.org.sh

This file was deleted.

11 changes: 5 additions & 6 deletions update-rakudo.org.sh
Expand Up @@ -15,12 +15,11 @@ cp start-rakudo.org.sh ../
if [ "$before" != "$after" ]
then
echo "Got new commits"
if [[ `git log "$before"..."$after" --oneline` =~ '[REAPP]' ]]; then
echo "Restarting app"
set +e
hypnotoad app.pl
set -e
fi
fi

echo "Starting the app"
set +e
hypnotoad app.pl
set -e

echo 'Done'

0 comments on commit 3d8a0f6

Please sign in to comment.