Skip to content

Commit

Permalink
chore: woo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroaki KARASAWA committed Sep 7, 2019
1 parent 347b676 commit 2869684
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ webapp/php/vendor
bench/isucon7q-initial-dataset.sql.gz
bench/result.json
webapp/perl/local
alp
2 changes: 1 addition & 1 deletion scripts/init/netdata
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for instance in ${instances}; do
# Depends on machine
# sudo dpkg --continue -a

OUTPUT=$(ssh ${instance} sudo apt-get -y upgrade)
OUTPUT=$(ssh ${instance} sudo apt-get -y update)
wrap "sudo agt-get -y update" ${OUTPUT}

OUTPUT=$(ssh ${instances} "echo -en '\n
Expand Down
7 changes: 4 additions & 3 deletions scripts/restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ set -u
readonly SERV_NAME=hoge
readonly services="mariadb torb.go h2o netdata"
readonly instances=$@
readonly isucon_dir=/home/isucon

for instance in ${instances}; do
ssh $instance <<EOS
if [[ ! -d /home/isucon/$SERV_NAME ]]; then
echo "No file /home/isucon/$SERV_NAME" 2>&1
if [[ ! -d ${isucon_dir}/$SERV_NAME ]]; then
echo "No file ${isucon_dir}/$SERV_NAME" 2>&1
exit 1
fi
cd /home/isucon/$SERV_NAME/webapp/go
cd ${isucon_dir}/$SERV_NAME/webapp/go
make
Expand Down
1 change: 1 addition & 0 deletions scripts/wait-bench/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const puppeteer = require("puppeteer");
// https://github.com/GoogleChrome/puppeteer

(async () => {
const browser = await puppeteer.launch();
Expand Down

0 comments on commit 2869684

Please sign in to comment.