Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .DEFAULT_GOAL := help
- nginx-log: ## tail nginx access.log
- sudo tail -f /var/log/nginx/access.log
- nginx-error-log: ## tail nginx error.log
- sudo tail -f /var/log/nginx/error.log
- nginx-alp: ## watch nginx log through alp by time spend sum
- sudo alp --sum -r -f /var/log/nginx/access.log
- restart: ## copy configs from repository to conf
- sudo cp config/nginx.conf /etc/nginx/
- sudo cp config/my.cnf /etc/
- make -s nginx-restart
- make -s db-restart
- make -s ruby-restart
- ruby-log: ## log Server
- sudo journalctl -u isuxi.ruby
- ruby-restart: ## Restart Server
- sudo systemctl daemon-reload
- cd ruby; bundle 1> /dev/null
- sudo systemctl restart isuxi.ruby
- echo 'Restart isu-ruby'
- nginx-restart: ## Restart nginx
- sudo systemctl restart nginx
- echo 'Restart nginx'
- db-restart: ## Restart mysql
- sudo systemctl restart mysql
- echo 'Restart mysql'
- db-log: ## tail mysql.log
- sudo tail -f /var/log/mysql/mysql.log
- myprofiler: ## Run myprofiler
- myprofiler -user=isucon -password=isucon
- .PHONY: help
- help:
- @grep -E '^[a-z0-9A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Add Comment
Please, Sign In to add comment