Last Updated: February 25, 2016
·
1.062K
· teamon

Procfile for development/production

If you use Procfile in production you might want to have separate Procfile.dev for development. Here is quick tip how to make that less painfull.

Put this in your .zshrc/.bashrc file

function fm {
  if [ -f Procfile.dev ] ; then
    foreman start -f Procfile.dev
  else
    foreman start
  fi
}

And then inside project directory just run

$ fm