Skip to content

Commit 0de92c5

Browse files
committed
Migration: more final touch
1 parent 9f6469b commit 0de92c5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/migration/deploy.sh

+5
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@ RAILS_ENV=production
55
ssh -A watchdoge -- RAILS_APP_BRANCH=develop /usr/local/bin/rails_deploy_datapass_reborn_$RAILS_ENV.sh
66
scp app/migration/.pgpassword watchdoge:.
77
ssh -A watchdoge -- sudo mv .pgpassword /var/www/datapass_reborn_$RAILS_ENV/current/app/migration/
8+
ssh -A watchdoge -- sudo chown +r /var/www/datapass_reborn_$RAILS_ENV/current/app/migration/.pgpassword
9+
ssh -A watchdoge -- sudo chmod root:root /var/www/datapass_reborn_$RAILS_ENV/current/app/migration/.pgpassword
10+
811
scp app/migration/.ovh.yml watchdoge:.
912
ssh -A watchdoge -- sudo mv .ovh.yml /var/www/datapass_reborn_$RAILS_ENV/current/app/migration/
13+
ssh -A watchdoge -- sudo chown +r /var/www/datapass_reborn_$RAILS_ENV/current/app/migration/.ovh.yml
14+
ssh -A watchdoge -- sudo chmod root:root /var/www/datapass_reborn_$RAILS_ENV/current/app/migration/.ovh.yml

app/migration/run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ ActiveRecord::Base.transaction do
6060
end
6161
"
6262

63-
echo ">> Maintenance mode OFF"
64-
sudo rm -f /var/www/html/maintenance_datapass.html
63+
# echo ">> Maintenance mode OFF"
64+
# sudo rm -f /var/www/html/maintenance_datapass.html
6565

6666
echo ">> Cleaning up"
6767
rm -f ~/.pgpass

0 commit comments

Comments
 (0)