Created
August 3, 2018 04:33
-
-
Save quadrixm/bbb11b6973f3890d2590e931537873c0 to your computer and use it in GitHub Desktop.
Play Debug shel script
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
#!/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