The following install scripts, quickstart, settings, and functions can be used to setup and configure developer machines.
These automated install scripts were inspired by the following article from the Grav CMS Blog: macOS 10.13 High Sierra Apache Setup: Multiple PHP Versions
Provided you've added the user as a collaborator to this repo and customized their ~/.setup file, you can simply run the following commands in order:
curl -L "https://git.io/Jtt11" -o ~/desktop/setup && chmod +x $_
~/desktop/setup
cd /Sites/config/install
./bash-config.sh
./settings.sh general_ux finder firewall safari terminal
./apps.sh brews npm atom
./server.sh-
Create a new Github Account and add user as a collaborator to the config repo.
-
Download the setup gist to your desktop and make it executable:
curl -L "https://git.io/Jtt11" -o ~/desktop/setup && chmod +x $_
-
Either configure your install via https://setup.ginn.io or customize a new config:
curl -L "https://git.io/JtUdx" -o ~/.setup atom ~/.setup
-
Start the install:
~/desktop/setup
- Shut down anything that might interfere, such as Codekit, Github Desktop, bash scripts, etc.
- Double-click the
setupscript on your desktop. - CD into the newly cloned repo:
cd /Sites/config/install - Open
bash-config.shto set up bash and git. We're still using Terminal here. - Open
settings.sh {args}to apply default system settings. Requires bash-config install. - Open
apps.sh {args}to install default apps for developers. - Open
server.shto install a local test server.
Debugging:
If you have issues, please run through these manual setup steps
server restartNote: I've also created an experimental Automator App called
Restart Serverin this repo that runs through all the commands below. If you have issues, please try running the manual commands below.
sudo apachectl -k restartYou can watch the Apache error log in a new Terminal tab/window during a restart to see if anything is invalid or causing a problem:
tail -f /usr/local/var/log/httpd/error_logsudo brew services restart httpdbrew services restart mariadbsudo brew services restart dnsmasqflushdns -V./uninstall.sh server brews homebrew npm apm bash