Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

callaginn/install

Repository files navigation

Developer Setup

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

Install Quickstart

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

Pre-Install

  1. Create a new Github Account and add user as a collaborator to the config repo.

  2. Download the setup gist to your desktop and make it executable:

    curl -L "https://git.io/Jtt11" -o ~/desktop/setup && chmod +x $_
  3. Either configure your install via https://setup.ginn.io or customize a new config:

    curl -L "https://git.io/JtUdx" -o ~/.setup
    atom ~/.setup
  4. Start the install:

    ~/desktop/setup

Install

  1. Shut down anything that might interfere, such as Codekit, Github Desktop, bash scripts, etc.
  2. Double-click the setup script on your desktop.
  3. CD into the newly cloned repo: cd /Sites/config/install
  4. Open bash-config.sh to set up bash and git. We're still using Terminal here.
  5. Open settings.sh {args} to apply default system settings. Requires bash-config install.
  6. Open apps.sh {args} to install default apps for developers.
  7. Open server.sh to install a local test server.

Debugging:
If you have issues, please run through these manual setup steps

Server Cheatsheet

Refresh it All!

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.

Restart Apache

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

Restart HTTPD

sudo brew services restart httpd

Restart MySQL

brew services restart mariadb

Restart Dnsmasq

sudo brew services restart dnsmasq

Our Clean DNS Function

flushdns -V

Uninstall

./uninstall.sh server brews homebrew npm apm bash

About

Easily set up a new user's machine (UNSTABLE, IN DEVELOPMENT)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published