Created
October 3, 2017 18:51
-
-
Save dannygsmith/5b57479c87064fae8852b61d127675b0 to your computer and use it in GitHub Desktop.
Script to start laravel valet
This file contains hidden or 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 | |
#styles | |
VP_NONE='\033[00m' | |
VP_RED='\033[01;31m' | |
VP_GREEN='\033[01;32m' | |
VP_YELLOW='\033[01;33m' | |
VP_PURPLE='\033[01;35m' | |
VP_CYAN='\033[01;36m' | |
VP_WHITE='\033[01;37m' | |
VP_BOLD='\033[1m' | |
VP_UNDERLINE='\033[4m' | |
clear | |
valet start | |
sudo brew services start dnsmasq | |
sudo brew services start nginx | |
sudo brew services start php72 | |
brew services start mysql | |
brew services start mailhog | |
clear | |
echo " " | |
echo -e "${VP_GREEN}${VP_BOLD}use brew services list to see if any services are running${VP_NONE}" | |
brew services list | |
ps aux|grep dnsmasq | grep -v grep|head -1 | |
ps aux|grep nginx | grep -v grep|head -1 | |
ps aux|grep php | grep -v grep|head -1 | |
ps aux|grep mailhog | grep -v grep|head -1 | |
ps aux|grep mysql | grep -v grep|head -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment