Class: Cany::Recipes::Unicorn

Inherits:
WebServer show all
Defined in:
lib/cany/recipes/unicorn.rb

Overview

Note:

The receives relies that the ‘unicorn’ gem is included in your Gemfile and therefore installed via bundler (and the bundler recipe).

This recipes install the Unicorn Rack HTTP server. It is registered and started as service.

Instance Attribute Summary

Attributes inherited from WebServer

#group, #user

Attributes inherited from Cany::Recipe

#inner, #spec

Instance Method Summary collapse

Methods inherited from WebServer

#binary, #initialize

Methods inherited from Cany::Recipe

#binary, #build, #clean, #configure, #create, #depend, #exec, from_name, #hook, hook, #initialize, #install, #install_content, #install_dir, #install_link, #install_service, option, #option, #prepare, #recipe, register_as, #rmtree, #ruby_bin, #run_hook

Methods included from Mixins::DependMixin

#create_dep

Constructor Details

This class inherits a constructor from Cany::Recipes::WebServer

Instance Method Details

#launch_commandObject



12
13
14
# File 'lib/cany/recipes/unicorn.rb', line 12

def launch_command
  %W(unicorn --config-file /etc/#{spec.name}/unicorn.rb --env production)
end