Foreman & Procfile

Adds Foreman gem, creates Procfile and Procfile.dev
Icons/chart bar
Used 78 times
Created by
D Dale Zak

Usage
foreman start -f Procfile.dev

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/zamsAa"
Template Source

Review the code before running this template on your machine.

run "bundle add foreman"

file 'Procfile', <<-CODE
web: bundle exec puma -C config/puma.rb
CODE

file 'Procfile.dev', <<-CODE
web: bundle exec rails s -p 3000 -b lvh.me
webpack: ./bin/webpack-dev-server
CODE
Comments
youssef
Hi Dale,

seeing the first line of this template remind me this article about not to bundle foreman
https://github.com/ddollar/foreman/wiki/Don't-Bundle-Foreman