Skip to content

Commit 8f0deb1

Browse files
committed
Migration: harden scripts
1 parent 9cd4b4d commit 8f0deb1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/migration/deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ ssh -A watchdoge -- sudo chmod 644 /var/www/datapass_reborn_$RAILS_ENV/current/a
1515

1616

1717
ssh -A watchdoge -- sudo cp /var/www/datapass_reborn_$RAILS_ENV/data.db /var/www/datapass_reborn_$RAILS_ENV/current/app/migration/dumps/
18+
ssh -A watchdoge -- sudo cp /var/www/datapass_reborn_$RAILS_ENV/*.sql /var/www/datapass_reborn_$RAILS_ENV/current/app/migration/dumps/

app/migration/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SKIP_DOCUMENT_VALIDATION=true
1212
LOCAL=false
1313
## END TODO
1414

15-
export RAILS_ENV LOCAL
15+
export RAILS_ENV LOCAL SKIP_DOCUMENT_VALIDATION
1616

1717
## Process ici: https://pad.incubateur.net/xMY2MVZ1STexUrU8yfYMng
1818

0 commit comments

Comments
 (0)