Merge pull request #12 from kazu634/change-ec2-ipaddr

Change EC2 server IP Address.
This commit is contained in:
Kazuhiro MUSASHI 2023-07-09 20:48:20 +09:00 committed by GitHub
commit 4d9d317263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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