Skip to content

Commit

Permalink
install dotenv gem
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoh committed Aug 9, 2015
1 parent 1792b2a commit 082cc2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source 'https://rubygems.org'

gem 'dotenv-rails'
# Use devise to manage users
gem 'devise'
# Use paperclip for uploading photos
Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ GEM
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
dotenv (2.0.2)
dotenv-rails (2.0.2)
dotenv (= 2.0.2)
railties (~> 4.0)
dropbox-sdk (1.6.4)
json
erubis (2.7.0)
Expand Down Expand Up @@ -178,6 +182,7 @@ DEPENDENCIES
byebug
coffee-rails (~> 4.1.0)
devise
dotenv-rails
jbuilder (~> 2.0)
jquery-rails
paperclip (~> 4.3)
Expand Down
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

Dotenv::Railtie.load

HOSTNAME = ENV['HOSTNAME']

module Jobby
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
Expand Down

0 comments on commit 082cc2c

Please sign in to comment.