From 3390496eb673564d2e61f36a66745d6c1ed7110a Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sun, 29 Dec 2024 11:15:04 -0600 Subject: more logging --- deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'deploy.sh') diff --git a/deploy.sh b/deploy.sh index 4999025..4538d63 100755 --- a/deploy.sh +++ b/deploy.sh @@ -3,9 +3,14 @@ if [ "$1" = "test" ]; then branch='test' location='/var/www/html-test' + echo 'deploying to test.jjanzen.ca' elif [ "$1" = "prod" ]; then branch='main' location='/var/www/html' + echo 'deploying to jjanzen.ca' +else + echo 'unrecognized mode' + exit 1 fi rm -rf "$HOME/public_html" @@ -32,3 +37,4 @@ emacs --batch -f package-initialize --script ~/website/publish.el /bin/cp -r "$HOME/public_html"/* "$location" chown -R apache:apache "$location" +chmod -R 775 "$location" -- cgit v1.2.3