forked from isucon/isucon6-qualify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ubuntu
committed
Aug 19, 2018
1 parent
9986d57
commit f8474e8
Showing
1 changed file
with
26 additions
and
3 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
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 |