This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First, install nginx for mac with "brew install nginx". | |
Then follow homebrew's instructions to know where the config file is. | |
1. To use https you will need a self-signed certificate: https://devcenter.heroku.com/articles/ssl-certificate-self | |
2. Copy it somewhere (use full path in the example below for server.* files) | |
3. sudo nginx -s reload | |
4. Access https://localhost/ | |
Edit /usr/local/etc/nginx/nginx.conf: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -rubygems | |
# This is a replacement for "livereload" gem for working with Rails. | |
# It watches the filesystem with OS X FSEvents rather than with EventMachine. | |
# This is better for large projects for wich EventMachine fails. | |
# | |
# Sass is supported; .sass files can also be stored in "app/styles/" directory. | |
# | |
# Command line options are "-D" to enable debug mode. All other parameters | |
# (if given) specify a list of directories to watch. |