Last active
August 29, 2015 14:16
-
-
Save zachfedor/3e1b82ad4e546a0a4d19 to your computer and use it in GitHub Desktop.
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
function mamptowordpress { | |
dir=/Applications/MAMP/conf/apache | |
rm $dir/httpd.conf | |
ln -s $dir/httpd-wordpress.conf $dir/httpd.conf | |
stopMAMP | |
# startMAMP | |
echo "Happy Wordpress Developing!" | |
} |
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
function mamptomagento { | |
dir=/Applications/MAMP/conf/apache | |
rm $dir/httpd.conf | |
ln -s $dir/httpd-magento.conf $dir/httpd.conf | |
stopMAMP | |
# startMAMP | |
echo "Happy Magento Developing!" | |
} |
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
function stopMAMP { | |
if test -f /Applications/MAMP/Library/logs/httpd.pid; then | |
echo "Stopping Mamp Apache Server..." | |
/Applications/MAMP/Library/bin/apachectl -f"/Applications/MAMP/conf/apache/httpd.conf" -k stop | |
fi | |
if test -f /Applications/MAMP/tmp/mysql/mysql.pid; then | |
echo "Stopping MAMP MySQL Server..." | |
/bin/kill `cat /Applications/MAMP/tmp/mysql/mysql.pid` | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment