Skip to content

Instantly share code, notes, and snippets.

@banjarey
banjarey / unicorn.rb
Created November 6, 2012 08:14
Sample unicorn config excluding staging
# Minimal sample configuration file for Unicorn (not Rack) when used
# with daemonization (unicorn -D) started in your working directory.
#
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
# documentation.
# See also http://unicorn.bogomips.org/examples/unicorn.conf.rb for
# a more verbose configuration using more features.
env = ENV["RAILS_ENV"] || "development"
@banjarey
banjarey / gemfile_1
Created July 13, 2012 07:41
Gemfile causing raindrops dependency error
GIT
remote: git://github.com/banjarey/instagram-ruby-gem.git
revision: f7a4622748d23f654eede688e74b6a9dfbe8b79b
specs:
instagram (0.8.4)
faraday (~> 0.7)
faraday_middleware (~> 0.8)
hashie (>= 0.4.0)
multi_json (~> 1.3)
@banjarey
banjarey / config.rb
Created March 2, 2012 07:43
Unicorn Init on boot with config
# Minimal sample configuration file for Unicorn (not Rack) when used
# with daemonization (unicorn -D) started in your working directory.
#
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
# documentation.
# See also http://unicorn.bogomips.org/examples/unicorn.conf.rb for
# a more verbose configuration using more features.
listen 2007 # by default Unicorn listens on port 8080
worker_processes 1 # this should be >= nr_cpus