Skip to content

Commit

Permalink
🔨 copy .env from owid-admin-prod server instaed of live
Browse files Browse the repository at this point in the history
  • Loading branch information
Marigold committed Apr 10, 2024
1 parent ef27cb4 commit 750b5d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ops/buildkite/build-code
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ build_code () {


update_env() {
echo '--- Copying live.owid.io:live-data/.env to owid-grapher/.env and updating it'
echo '--- Copying owid-admin-prod:owid-grapher/.env to owid-grapher/.env and updating it'

# copy .env from live server
rsync -av --rsh 'ssh -o StrictHostKeyChecking=no' owid@live.owid.io:live-data/.env owid-grapher/.env.template
# copy .env from admin server
rsync -av --rsh 'ssh -o StrictHostKeyChecking=no' owid@owid-admin-prod:owid-grapher/.env owid-grapher/.env.template

# copy .env.template to .env
cp owid-grapher/.env.template owid-grapher/.env
Expand Down

0 comments on commit 750b5d0

Please sign in to comment.