robotmay / capistrano-foreman

Capistrano tasks for foreman and upstart.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capistrano Foreman

Code Climate

Capistrano tasks for foreman and upstart.

Installation

$ gem install capistrano-foreman

Add this to your Capfile:

require 'capistrano/foreman'

# Default settings
set :foreman_sudo, 'sudo'                    # Set to `rvmsudo` if you're using RVM
set :foreman_upstart_path, '/etc/init/sites' # Set to `/etc/init/` if you don't have a sites folder
set :foreman_options, {
  app: application,
  log: "#{shared_path}/log",
  user: user,
}

See exporting options for an exhaustive list of foreman options.

Usage

Export Procfile to upstart:

$ cap foreman:export

Restart the application services:

$ cap foreman:restart

Credits

Hyper made this. We're a digital communications agency with a passion for good code, and if you're using this library we probably want to hire you.

About

Capistrano tasks for foreman and upstart.

License:MIT License