Add foreman to a rails project

January 24, 2021

Gemfile

group :development do
  gem 'foreman'
end

Install dependencies

bundle install

Create dev profile

## Procfile.dev
web: bundle exec rails s
webpacker: ./bin/webpack-dev-server
elasticsearch: elasticsearch
workers: QUEUE=*  ./bin/rails resque:work

Run

bundle exec foreman start -f Procfile.dev

Search