Sha256: 08839435c0257fddc6d3d4edf41edafe9d3740d2b81b1814e99cf59f4e1f81fc
Contents?: true
Size: 832 Bytes
Versions: 2
Compression:
Stored size: 832 Bytes
Contents
require "rails/generators" require File.expand_path("../generator_helper", __FILE__) include GeneratorHelper module ReactOnRails module Generators class HerokuDeploymentGenerator < Rails::Generators::Base Rails::Generators.hide_namespace(namespace) source_root(File.expand_path("../templates", __FILE__)) def copy_heroku_deployment_files base_path = "heroku_deployment" %w(.buildpacks 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
react_on_rails-1.2.2 | lib/generators/react_on_rails/heroku_deployment_generator.rb |
react_on_rails-1.2.1 | lib/generators/react_on_rails/heroku_deployment_generator.rb |