summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh11
1 files changed, 0 insertions, 11 deletions
diff --git a/deploy.sh b/deploy.sh
index 969d462..abd9cfc 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -42,17 +42,6 @@ systemctl stop ${SERVICE} || true
echo "Swapping binary..."
mv app.new app
-echo "Checking out latest code (backup)..."
-# We keep this for reference, but we deployed assets via rsync from local
-if [ -d "app-code" ]; then
- cd app-code
- GIT_WORK_TREE=${SITE_DIR}/checkout git checkout -f master 2>/dev/null || {
- mkdir -p ${SITE_DIR}/checkout
- GIT_WORK_TREE=${SITE_DIR}/checkout git checkout -f master
- }
- cd ${SITE_DIR}
-fi
-
echo "Setting permissions..."
chown -R www-data:www-data ${SITE_DIR}
find ${SITE_DIR} -type d -exec chmod 755 {} \;