Skip to content

Instantly share code, notes, and snippets.

View ahromis's full-sized avatar

Andrew Hromis ahromis

View GitHub Profile
@ahromis
ahromis / README.md
Last active December 30, 2015 09:28 — forked from keikubo/README.md

Nginx + Unicorn for Rails on Rackhub

Description:

This script enables you to launch your Rails application in production environment (port:80) with Nginx and Unicorn.

Installation:

Please make sure that your Gemfile in your rails application includes unicorn.

# First, enable "Listen for incoming notifications"
# in Growl preferences and set a password
# You might want to use this in an initializer
growl = Growl::GNTP.new 'ip_of_your_mac', 'App name'
growl.password = 'your_password'
# growl.add_notification 'name'
# growl.notify 'name', 'title', 'message'