Skip to content

Instantly share code, notes, and snippets.

@ykamez
Created May 11, 2019 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ykamez/145098991bdf525b6ef278439e20c7b8 to your computer and use it in GitHub Desktop.
Save ykamez/145098991bdf525b6ef278439e20c7b8 to your computer and use it in GitHub Desktop.
alias deploy="git checkout master & git pull origin master \
& sudo systemctl reload nginx \
& sudo systemctl restart isuda.ruby.service \
& sudo systemctl restart isutar.ruby.service \
"
alias restart="sudo systemctl reload nginx \
& sudo systemctl restart isuda.ruby.service \
& sudo systemctl restart isutar.ruby.service \
& sudo systemctl status isuda.ruby.service \
& sudo systemctl status isutar.ruby.service \
"
alias katare="sudo cat /var/log/nginx/access.log | $HOME/kataribe"
# sudo mv "/var/log/nginx/access.log" "/var/log/nginx/`date +"%Y%m%d%H%M%S"`_access.log"
# sudo systemctl restart nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment