initializers for .env

This commit is contained in:
Devin Howard 2016-01-07 18:34:24 +08:00
parent c6b0ccdbdb
commit e21096f00a
2 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,4 @@
# Please ensure this file is loaded first (alphabetical seems to work)
require 'dotenv'
Dotenv.load

View file

@ -1,6 +1,8 @@
require 'dotenv/tasks'
namespace :heroku do
desc "Generate the Heroku gems manifest from gem dependencies"
task :gems do
task :gems => :dotenv do
RAILS_ENV='production'
Rake::Task[:environment].invoke
list = Rails.configuration.gems.collect do |g|
@ -12,4 +14,4 @@ namespace :heroku do
f.write(list)
end
end
end
end