This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ta-koge <ta-koge@global-mobility-service.com>
- Loading branch information
ta-koge
committed
Sep 7, 2019
1 parent
f57b6f4
commit dda39a5
Showing
4 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#/bin/bash -ex | ||
|
||
ssh isucon@isucon01 /home/isucon/isucari/webapp/nodejs/deploy.sh | ||
ssh isucon@isucon02 /home/isucon/isucari/webapp/nodejs/deploy.sh | ||
ssh isucon@isucon03 /home/isucon/isucari/webapp/nodejs/deploy.sh | ||
ssh isucon@isucon01 /home/isucon/isucari/webapp/nodejs/deploy01.sh | ||
ssh isucon@isucon02 /home/isucon/isucari/webapp/nodejs/deploy0203.sh | ||
ssh isucon@isucon03 /home/isucon/isucari/webapp/nodejs/deploy0203.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash -ex | ||
|
||
cd /home/isucon/isucari/webapp/nodejs | ||
git pull origin master | ||
|
||
sudo cp ../../conf/nginx.conf /etc/nginx | ||
sudo systemctl restart nginx.service | ||
|
||
sudo cp ../../conf/my.cnf /etc/mysql | ||
sudo systemctl restart mysql.service | ||
/home/isucon/isucari/webapp/sql/init.sh | ||
|
||
sudo systemctl daemon-reload | ||
|
||
sudo bash -c 'echo > /var/log/nginx/access.log; echo > /var/log/mysql/slow.log;' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash -ex | ||
|
||
cd /home/isucon/isucari/webapp/nodejs | ||
git pull origin master | ||
|
||
/home/isucon/local/node/bin/npm i | ||
|
||
/home/isucon/isucari/webapp/nodejs/node_modules/.bin/tsc | ||
|
||
sudo cp ../../conf/isucari.nodejs.service /etc/systemd/system/ | ||
|
||
sudo systemctl daemon-reload | ||
sudo systemctl restart isucari.nodejs.service |