Sha256: 48276f5c6c2f87a5646c5c825d0ab854dfff41108de157be914e1c4dfb16a746

Contents?: true

Size: 589 Bytes

Versions: 1

Compression:

Stored size: 589 Bytes

Contents

module Install
  module Heroku
    def self.included(thor)
      thor.class_eval do

      desc 'install_heroku', 'setup application for use with heroku using sqlite3 for development'
      def install_heroku
        insert_into_file 'Gemfile', before: "group :development, :test do\n" do <<-CODE
group :production do
  gem 'pg'
  gem 'rails_12factor'
end

CODE
          end
          copy_file 'db/sqlite3_database.yml', 'config/database.yml'
          copy_file 'heroku/Procfile', 'Procfile'
          copy_file 'heroku/puma.rb', 'config/puma.rb'
      end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
myrails-6.0.0 lib/myrails/modules/heroku.rb