Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 19, 2018
1 parent 9986d57 commit f8474e8
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
build-isupam:
tools/build_isupam.sh
.PHONY: main sysctl mysql nginx ctrl bench

.PHONY: build-isupam
main: sysctl mysql nginx ctrl link_init bench
echo "OK"

sysctl:
sudo ln -sf $(PWD)/sysctl.conf /etc/sysctl.conf
sudo sysctl -a

mysql:
sudo systemctl restart mysql

nginx:
sudo rm -f /var/log/nginx/access.log /var/log/nginx/error.log
sudo touch /var/log/nginx/access.log /var/log/nginx/error.log
sudo systemctl reload nginx

app:
cd /home/isucon/isucon6-qualify/webapp/go && make
sudo systemctl restart isutar.go
sudo systemctl restart isuda.go

link_init:
sudo su - isucon -c 'ln -sf $(PWD)/init.sh init.sh'

bench:
cd /home/isucon/gocode/src/github.com/isucon/isucon6-qualify/bench && ./bench --datadir=data -target=http://localhost

0 comments on commit f8474e8

Please sign in to comment.