Skip to content

Instantly share code, notes, and snippets.

@amitnarayanan
Created March 6, 2015 22:40
Show Gist options
  • Save amitnarayanan/031a039d1791f12bbcd3 to your computer and use it in GitHub Desktop.
Save amitnarayanan/031a039d1791f12bbcd3 to your computer and use it in GitHub Desktop.
# I don't want to manually start everything I need... so
#
# Two web processes
#
web1: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
web2: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
#
# Workers
#
worker: bundle exec sidekiq -q default -c 2
#
# Two memcache instances, one for frags and another for snippets
#
frag-cache: memcached -vv -m 25 -p 11211
snippet-cache: memcached -vv -m 100 -p 11212
#
# One SOLR instance (run the one bundled within rails sunspot)
#
search: bundle exec rake sunspot:solr:run
#
# And finally Redis
#
redis: redis-server /usr/local/etc/redis.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment