Dotenv-rails should be defined a the very top of the gemfile
This commit is contained in:
parent
be2c75d3c0
commit
20a3f86729
2 changed files with 4 additions and 2 deletions
4
Gemfile
4
Gemfile
|
@ -1,5 +1,7 @@
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
|
# dotenv should always be loaded before rails
|
||||||
|
gem 'dotenv-rails', require: 'dotenv/rails-now'
|
||||||
gem 'rails'
|
gem 'rails'
|
||||||
|
|
||||||
# Use SCSS for stylesheets
|
# Use SCSS for stylesheets
|
||||||
|
@ -171,7 +173,5 @@ group :development, :test do
|
||||||
# Deploy
|
# Deploy
|
||||||
gem 'mina', ref: '343a7', git: 'https://github.com/mina-deploy/mina.git'
|
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'
|
gem 'rspec_junit_formatter'
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,6 +6,8 @@ require 'rails/all'
|
||||||
# you've limited to :test, :development, or :production.
|
# you've limited to :test, :development, or :production.
|
||||||
Bundler.require(*Rails.groups)
|
Bundler.require(*Rails.groups)
|
||||||
|
|
||||||
|
Dotenv::Railtie.load
|
||||||
|
|
||||||
module TPS
|
module TPS
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Settings in config/environments/* take precedence over those specified here.
|
# Settings in config/environments/* take precedence over those specified here.
|
||||||
|
|
Loading…
Reference in a new issue