Mac: Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Nginx:
# Mac
brew install nginx
# Linux
sudo apt-get install nginx
Add the following to your /etc/hosts
:
127.0.0.1 profile.thegulocal.com
127.0.0.1 m.thegulocal.com
Now run the frontend setup script for nginx setup.sh:
sh setup.sh
You will have to make sure the sites-enabled
folder is included in your nginx.conf
(usually in /usr/local/etc/nginx/nginx.conf
):
# ...
http {
include mime.types;
default_type application/octet-stream;
# THIS IS WHAT YOU MUST ADD
include sites-enabled/*;
#...
Both frontend-test.crt and frontend-test.key are test values that are not used in production or anywhere else across the Guardian so can be public.