Sha256: fe4768114f469791cc1d44b086c8b4c298ed2d881655da8c458b4cf2ef750a4d
Contents?: true
Size: 503 Bytes
Versions: 15
Compression:
Stored size: 503 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 config.before_configuration do Dotenv.load(Dotenv::Railtie.root.join('.env.development')) end RUBY application env_config, env: 'test' end end
Version data entries
15 entries across 15 versions & 1 rubygems