Sha256: d428ee7b51f793dc1b50d31ea6cf605a6b2b7198dda399ec36cf7dc9bbcb638e
Contents?: true
Size: 766 Bytes
Versions: 7
Compression:
Stored size: 766 Bytes
Contents
module Capistrano module NginxUnicorn module Generators class ConfigGenerator < Rails::Generators::Base desc "Create local nginx and unicorn configuration files for customization" source_root File.expand_path('../templates', __FILE__) argument :templates_path, :type => :string, :default => "config/deploy/templates", :banner => "path to templates" def copy_template copy_file "nginx_conf.erb", "#{templates_path}/nginx_conf.erb" copy_file "unicorn.rb.erb", "#{templates_path}/unicorn.rb.erb" copy_file "unicorn_init.erb", "#{templates_path}/unicorn_init.erb" copy_file "logrotate.erb", "#{templates_path}/logrotate.erb" end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems