switch to dotenv-rails
This commit is contained in:
parent
11f921b058
commit
1d12aed3eb
3 changed files with 9 additions and 7 deletions
2
Gemfile
2
Gemfile
|
@ -10,7 +10,7 @@ gem 'delayed_job', '~> 4.0.2'
|
|||
gem 'delayed_job_active_record', '~> 4.0.1'
|
||||
gem 'devise'
|
||||
gem 'doorkeeper'
|
||||
gem 'dotenv'
|
||||
gem 'dotenv-rails'
|
||||
gem 'exception_notification'
|
||||
gem 'formtastic'
|
||||
gem 'formula'
|
||||
|
|
10
Gemfile.lock
10
Gemfile.lock
|
@ -87,7 +87,10 @@ GEM
|
|||
docile (1.1.5)
|
||||
doorkeeper (3.1.0)
|
||||
railties (>= 3.2)
|
||||
dotenv (2.1.0)
|
||||
dotenv (2.1.1)
|
||||
dotenv-rails (2.1.1)
|
||||
dotenv (= 2.1.1)
|
||||
railties (>= 4.0, < 5.1)
|
||||
erubis (2.7.0)
|
||||
exception_notification (4.1.4)
|
||||
actionmailer (~> 4.0)
|
||||
|
@ -273,7 +276,7 @@ DEPENDENCIES
|
|||
delayed_job_active_record (~> 4.0.1)
|
||||
devise
|
||||
doorkeeper
|
||||
dotenv
|
||||
dotenv-rails
|
||||
exception_notification
|
||||
factory_girl_rails
|
||||
formtastic
|
||||
|
@ -306,3 +309,6 @@ DEPENDENCIES
|
|||
tunemygc
|
||||
uglifier
|
||||
uservoice-ruby
|
||||
|
||||
BUNDLED WITH
|
||||
1.11.2
|
||||
|
|
|
@ -2,13 +2,9 @@ require File.expand_path('../boot', __FILE__)
|
|||
|
||||
require 'csv'
|
||||
require 'rails/all'
|
||||
require 'dotenv'
|
||||
|
||||
Bundler.require(*Rails.groups)
|
||||
|
||||
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
||||
Dotenv.load ".env.#{ENV["RAILS_ENV"]}", '.env'
|
||||
|
||||
module Metamaps
|
||||
class Application < Rails::Application
|
||||
config.active_job.queue_adapter = :delayed_job
|
||||
|
|
Loading…
Reference in a new issue