diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-29 11:15:04 -0600 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-29 11:15:04 -0600 |
commit | 3390496eb673564d2e61f36a66745d6c1ed7110a (patch) | |
tree | 0f8cdce2c0b11f160894468c153c9fbcf7020129 /deploy.sh | |
parent | 666cd6aad23d7d765f9840d647b02f50f19af314 (diff) |
more logging
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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" |