Dotenv-rails should be defined a the very top of the gemfile

This commit is contained in:
Mathieu Magnin 2018-03-09 10:00:11 +01:00 committed by Paul Chavard
parent be2c75d3c0
commit 20a3f86729
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,7 @@
source 'https://rubygems.org'
# dotenv should always be loaded before rails
gem 'dotenv-rails', require: 'dotenv/rails-now'
gem 'rails'
# Use SCSS for stylesheets
@ -171,7 +173,5 @@ group :development, :test do
# Deploy
gem 'mina', ref: '343a7', git: 'https://github.com/mina-deploy/mina.git'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'dotenv-rails'
gem 'rspec_junit_formatter'
end

View file

@ -6,6 +6,8 @@ require 'rails/all'
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
Dotenv::Railtie.load
module TPS
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.