Enabling rclone for db backup, changing to master branch for prod deploy, archiving migration scripts, adding backups/ to gitignore
This commit is contained in:
parent
5646851ae3
commit
678e9be2b2
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -13,3 +13,4 @@ app/vaultmsgs/*
|
||||||
app/cake_eclipse_helper.php
|
app/cake_eclipse_helper.php
|
||||||
app/webroot/pdf/*
|
app/webroot/pdf/*
|
||||||
app/webroot/attachments_files/*
|
app/webroot/attachments_files/*
|
||||||
|
backups/*
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ echo "Starting production deployment for cmc-sales..."
|
||||||
echo "Setting variables..."
|
echo "Setting variables..."
|
||||||
SERVER="cmc"
|
SERVER="cmc"
|
||||||
REPO="git@code.springupsoftware.com:cmc/cmc-sales.git"
|
REPO="git@code.springupsoftware.com:cmc/cmc-sales.git"
|
||||||
BRANCH="prod"
|
BRANCH="master"
|
||||||
PROD_DIR="cmc-sales-prod"
|
PROD_DIR="cmc-sales-prod"
|
||||||
|
|
||||||
echo "Connecting to server $SERVER via SSH..."
|
echo "Connecting to server $SERVER via SSH..."
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,5 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# rclone copy "$FILENAME" gdrivebackups:database/
|
rclone copy "$FILENAME" gdrivebackups:database/
|
||||||
# rclone sync /home/cmc/cmc-sales/app/webroot/pdf gdrivebackups:pdf/
|
# rclone sync /home/cmc/cmc-sales/app/webroot/pdf gdrivebackups:pdf/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue