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
setup
script on your desktop. - CD into the newly cloned repo:
cd /Sites/config/install
- Open
bash-config.sh
to 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.sh
to install a local test server.
Debugging:
If you have issues, please run through these manual setup steps
server restart
Note: I've also created an experimental Automator App called
Restart Server
in this repo that runs through all the commands below. If you have issues, please try running the manual commands below.
sudo apachectl -k restart
You 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_log
sudo brew services restart httpd
brew services restart mariadb
sudo brew services restart dnsmasq
flushdns -V
./uninstall.sh server brews homebrew npm apm bash