diff options
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" |