Merge pull request 'Update deploy target to `10.0.1.222`.' (#32) from update-deploy-target into master

Reviewed-on: #32
This commit is contained in:
Kazuhiro MUSASHI 2023-08-20 11:01:21 +00:00
commit 60f442fe65
2 changed files with 5 additions and 5 deletions

8
tasks/production.rake Normal file → Executable file
View File

@ -10,8 +10,8 @@ task :prod => [:init, :prep, :tcard] 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 '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/blog/*"' sh 'ssh -p 10022 webadm@10.0.1.222 "rm -rf /var/www/blog/*"'
sh 'ssh -p 10022 webadm@10.0.1.166 "rm -rf /home/webadm/works/public/*"' sh 'ssh -p 10022 webadm@10.0.1.222 "rm -rf /home/webadm/works/public/*"'
sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/var/www/blog' sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.222:/var/www/blog'
sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/home/webadm/works/public' sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.222:/home/webadm/works/public'
end end

2
tasks/staging.rake Normal file → Executable file
View File

@ -11,5 +11,5 @@ task :stag => [:init, :prep, :tcard] 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 '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/*"' sh 'ssh -p 10022 webadm@10.0.1.166 "rm -rf /var/www/test/*"'
sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/var/www/test' sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.222:/var/www/test'
end end