New MAMP Perfect Setup Install via Shell
Roll a new Perfect Setup installation for MAMP PRO with this quick shell script.
- You must have MAMP installed in
/Applications/MAMP/
. - You must have your Apache port set to
7888
. - You must put all of your sites in
~/Sites/
. If this directory does not exist, create it now. - You must be a member of the
tribeswell-llc
team on BitBucket. - You must be using MAMP PRO.
- Download the latest version of the shell script (there's a version number at the top). Copy it to your home directory. Make it executable, i.e.
chmod +x ./perfect_setup.sh
. - Make sure Apache and MySQL are both turned on in MAMP PRO.
- Run
./perfect_setup.sh
from your home directory in Terminal. - Answer the prompts until the project starts cloning.
- If you created a brand new repo, answer
perfect-setup
to the first question and the name of your repo to the second. - If someone else created the repo, answer the name of the repo to the first and accept the default for the second.
- If you created a brand new repo, answer
- Add your host in MAMP PRO while
npm install
is running and map it to the newly created directory in~/Sites/
. - Wait until the script finishes and opens tabs in your browser.
- Done!