$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install rbenv ruby-build
$ rbenv install --list # to see available versions
$ rbenv install 2.1.3 # to install the specific version
$ rbenv global 2.1.3 # set as your default version
gem install foreman
rbenv rehash
In the project directory create a Procfile
with the processes you would like to run. For example:
web: node index.js
worker: node doBackgroundStuff.js
If you have environment variables, put them in a .env
.
NODE_ENV=development
API_KEY=98r109jdfowipuf3489uf
$ foreman start