Sha256: c32f1923b8fefb91e11e8617d5346db109ecca3ccfad0d6743491e3d743ad0c6
Contents?: true
Size: 686 Bytes
Versions: 23
Compression:
Stored size: 686 Bytes
Contents
module Capistrano module UnicornNginx 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" end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems