From dd167df1cfc0ef669a52dc3b88b589339834dc07 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 9 Jul 2023 20:46:44 +0900 Subject: [PATCH] Change EC2 server IP Address. --- .drone.yml | 8 ++++---- tasks/production.rake | 8 ++++---- tasks/staging.rake | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index c82469b..50f52f2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,7 +23,7 @@ steps: - name: housekeep image: appleboy/drone-ssh settings: - host: 10.0.1.166 + host: 10.0.1.222 username: webadm port: 10022 key: @@ -35,7 +35,7 @@ steps: - name: scp image: appleboy/drone-scp settings: - host: 10.0.1.166 + host: 10.0.1.222 username: webadm port: 10022 target: @@ -77,7 +77,7 @@ steps: - name: housekeep image: appleboy/drone-ssh settings: - host: 10.0.1.166 + host: 10.0.1.222 username: webadm port: 10022 key: @@ -88,7 +88,7 @@ steps: - name: scp image: appleboy/drone-scp settings: - host: 10.0.1.166 + host: 10.0.1.222 username: webadm port: 10022 target: /var/www/test-everun diff --git a/tasks/production.rake b/tasks/production.rake index bb0fb82..c5f8e54 100755 --- a/tasks/production.rake +++ b/tasks/production.rake @@ -10,9 +10,9 @@ task :prod => [ :prep ] do sh 'find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c "cp % %.bk && gzip % && mv %.bk %"' - sh 'ssh -p 10022 webadm@10.0.1.166 "rm -rf /var/www/everun/*"' - sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/var/www/everun' + sh 'ssh -p 10022 webadm@10.0.1.222 "rm -rf /var/www/everun/*"' + sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.222:/var/www/everun' - sh 'ssh -p 10022 webadm@10.0.1.166 "rm -rf /home/webadm/works/everun/*"' - sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/home/webadm/works/everun' + sh 'ssh -p 10022 webadm@10.0.1.222 "rm -rf /home/webadm/works/everun/*"' + sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.222:/home/webadm/works/everun' end diff --git a/tasks/staging.rake b/tasks/staging.rake index 47d719d..68ab33d 100755 --- a/tasks/staging.rake +++ b/tasks/staging.rake @@ -10,6 +10,6 @@ task :stag => [ :prep ] do sh 'find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c "cp % %.bk && gzip % && mv %.bk %"' - sh 'ssh -p 10022 webadm@10.0.1.166 "rm -rf /var/www/test-everun/*"' - sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/var/www/test-everun' + sh 'ssh -p 10022 webadm@10.0.1.222 "rm -rf /var/www/test-everun/*"' + sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.222:/var/www/test-everun' end