Sha256: debfb29d78e3270f1969a82616b696274af3e352b4744f06c99014dd418b9a66
Contents?: true
Size: 533 Bytes
Versions: 8
Compression:
Stored size: 533 Bytes
Contents
class Recipes::Env < Rails::AppBuilder def create gather_gems(:development, :test) do gather_gem('dotenv-rails') end template '../assets/.env.development.erb', '.env.development' append_to_file '.gitignore', ".env.local\n" append_to_file '.gitignore', ".env\n" env_config = <<-RUBY.gsub(/^ {7}/, '') config.before_configuration do Dotenv.load(Dotenv::Railtie.root.join('.env.development')) end RUBY application env_config.strip, env: 'test' end end
Version data entries
8 entries across 8 versions & 1 rubygems