Sha256: 3604db057f4469916e7612a138074f4b64abe8d8995e3d4d17a72dba6d40678f
Contents?: true
Size: 694 Bytes
Versions: 2
Compression:
Stored size: 694 Bytes
Contents
require 'yaml' module Cany module Recipes # This recipes runs the application with the thin web server. At the moment it installs only a # upstart start script. Other init scripts are planed (e.g. systemd for debian). class Thin < WebServer register_as :thin def launch_command "thin start -C /etc/#{spec.name}/thin.yml" end def binary default_options = { 'environment' => 'production', 'socket' => "/var/run/#{spec.name}/sock", 'pid' => "/var/run/#{spec.name}/thin.pid" } install_content "/etc/#{spec.name}/thin.yml", default_options.to_yaml super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cany-0.0.2 | lib/cany/recipes/thin.rb |
cany-0.0.1 | lib/cany/recipes/thin.rb |