Skip to content

Instantly share code, notes, and snippets.

@quadrixm
Created August 3, 2018 04:33
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 quadrixm/bbb11b6973f3890d2590e931537873c0 to your computer and use it in GitHub Desktop.
Save quadrixm/bbb11b6973f3890d2590e931537873c0 to your computer and use it in GitHub Desktop.
Play Debug shel script
#!/usr/bin/env bash
# Checks if nginx is starting if not start it
if pgrep -xq -- "nginx"; then
echo nginx running
else
echo starting nginx
sudo nginx
fi
# Starting debug command on port 9999 for sbt play
sbt -jvm-debug 9999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment