switch to dotenv-rails

This commit is contained in:
Devin Howard 2016-06-07 12:55:49 +08:00
parent 11f921b058
commit 1d12aed3eb
3 changed files with 9 additions and 7 deletions

View file

@ -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'

View file

@ -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

View file

@ -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