Sha256: 33c7b64d4daee294ada19eae57ffd062597ef0f1bd006aea5c7eaffa10e5959f
Contents?: true
Size: 793 Bytes
Versions: 7
Compression:
Stored size: 793 Bytes
Contents
require "rails/generators" require_relative "generator_helper" module ReactOnRails module Generators class HerokuDeploymentGenerator < Rails::Generators::Base include GeneratorHelper Rails::Generators.hide_namespace(namespace) source_root(File.expand_path("../templates", __FILE__)) def copy_heroku_deployment_files base_path = "heroku_deployment" %w(Procfile config/puma.rb).each { |file| copy_file("#{base_path}/#{file}", file) } end def add_heroku_production_gems gem_text = <<-GEMS.strip_heredoc # For Heroku deployment gem 'rails_12factor', group: :production gem 'puma', group: :production GEMS append_to_file("Gemfile", gem_text) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems