File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535
3636 - name : Redeploy Site
3737 run : |
38- ssh my-vps '~/redeploy-site.sh' \
38+ ssh my-vps 'sudo ~/redeploy-site.sh' \
3939 ssh my-vps 'yes | cp ~/graph-uf/scripts/redeploy-site.sh ~/redeploy-site.sh'
Original file line number Diff line number Diff line change 33
44set -eo pipefail
55
6- PROJECT_DIR=" $HOME /graph-uf/"
6+ PROJECT_DIR=" /home/myuser /graph-uf/"
77URL=" https://www.aleguy02.dev"
88MAX_RETRIES=5
99
3838# Health check with retries
3939retry_count=0
4040while [ $retry_count -lt $MAX_RETRIES ]; do
41- if [ " $( curl --head $URL /health | awk ' /^HTTP/{print $2}' ) " = " 200" ]; then
41+ if [ " $( curl --head $URL | awk ' /^HTTP/{print $2}' ) " = " 200" ]; then
4242 echo " Health check passed"
4343 break
4444 fi
@@ -52,7 +52,7 @@ while [ $retry_count -lt $MAX_RETRIES ]; do
5252 fi
5353done
5454if [ $retry_count -eq $MAX_RETRIES ]; then
55- echo " !! Could not reach the site at $URL /health or received a non-200 HTTP response. !!"
55+ echo " !! Could not reach the site at $URL or received a non-200 HTTP response. !!"
5656 exit 1
5757fi
5858
You can’t perform that action at this time.
0 commit comments