Guest User

Untitled

a guest
Aug 23rd, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. .DEFAULT_GOAL := help
  2. nginx-log: ## tail nginx access.log
  3. sudo tail -f /var/log/nginx/access.log
  4.  
  5. nginx-error-log: ## tail nginx error.log
  6. sudo tail -f /var/log/nginx/error.log
  7.  
  8. nginx-alp: ## watch nginx log through alp by time spend sum
  9. sudo alp --sum -r -f /var/log/nginx/access.log
  10.  
  11. restart: ## copy configs from repository to conf
  12. sudo cp config/nginx.conf /etc/nginx/
  13. sudo cp config/my.cnf /etc/
  14. make -s nginx-restart
  15. make -s db-restart
  16. make -s ruby-restart
  17.  
  18. ruby-log: ## log Server
  19. sudo journalctl -u isuxi.ruby
  20.  
  21. ruby-restart: ## Restart Server
  22. sudo systemctl daemon-reload
  23. cd ruby; bundle 1> /dev/null
  24. sudo systemctl restart isuxi.ruby
  25. echo 'Restart isu-ruby'
  26.  
  27. nginx-restart: ## Restart nginx
  28. sudo systemctl restart nginx
  29. echo 'Restart nginx'
  30.  
  31. db-restart: ## Restart mysql
  32. sudo systemctl restart mysql
  33. echo 'Restart mysql'
  34.  
  35. db-log: ## tail mysql.log
  36. sudo tail -f /var/log/mysql/mysql.log
  37.  
  38. myprofiler: ## Run myprofiler
  39. myprofiler -user=isucon -password=isucon
  40.  
  41. .PHONY: help
  42. help:
  43. @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