Skip to content

Instantly share code, notes, and snippets.

@hamiltonsw
Last active July 16, 2018 18:36
Show Gist options
  • Save hamiltonsw/8cc0b4ce456248407ddf77c08e37a841 to your computer and use it in GitHub Desktop.
Save hamiltonsw/8cc0b4ce456248407ddf77c08e37a841 to your computer and use it in GitHub Desktop.

David's ENV setup script

MySQL

Download here => https://dev.mysql.com/downloads/file/?id=476953

Start it by opening System Preferences and selecting the MySQL icon at the bottom. Choose start & start on boot up

Nginx

Nginx is installed through brew

$ brew install nginx

Next you need to edit your /usr/local/etc/nginx/nginx.conf to default to port 80.

Next create a file at /usr/local/etc/nginx/servers/kizanpro.conf

Copy the config from https://gist.github.com/hamiltonsw/bc4581fb3c47ab06e0e7c83e28f70d00

Change the root value to match where you've installed your kizanpro repo.

Change the server_name value to match the server name you've set up in /etc/hosts. (Your entry in that file should look like the following)

127.0.0.1	kizanpro.local

PHP 7.0

PHP-7.0 is also installed using brew

$ brew install php70

Starting it all up

Start mysql as described in that section.

Start nginx with the following command:

$ sudo nginx

Start php with the following command:

$ sudo brew services start php@70

TADA! All done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment