The Ultimate Rails/Redis/Postgres/Resque Procfile

Alex Egg,

Assuming your using homebrew for package management:

redis:   redis-server /usr/local/etc/redis.conf
db: postgres -D /usr/local/var/postgres
web: bundle exec rails server thin -p $PORT -e $RACK_ENV
worker:  bundle exec rake resque:work QUEUE=*

Also you’ll probably want to turn down redis’ logging to ‘notice’ in /usr/local/etc/redis.conf

Then to start developing just run foreman start. No more manually starting PG and redis and rails, etc!

Permalink: the-ultimate-rails-proc-file


Last edited by Alex Egg, 2016-10-05 19:05:11
View Revision History