Skip to content
Extraits de code Groupes Projets
Valider ba63c028 rédigé par danielgrippi's avatar danielgrippi
Parcourir les fichiers

added heroku gem, slugignore, and heroku rake task to load application.yml vars as config vars

parent f55a0867
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
features
spec
......@@ -4,6 +4,7 @@ gem 'rails', '3.0.10'
gem 'bundler', '>= 1.0.0'
gem 'foreman'
gem 'heroku'
gem 'thin', '1.2.11', :require => false
......
......@@ -209,6 +209,11 @@ GEM
json (>= 1.4.6)
haml (3.1.2)
hashie (1.0.0)
heroku (2.6.1)
launchy (>= 0.3.2)
rest-client (~> 1.6.1)
rubyzip
term-ansicolor (~> 1.0.5)
highline (1.6.2)
hoptoad_notifier (2.4.11)
activesupport
......@@ -493,6 +498,7 @@ DEPENDENCIES
foreman
fuubar
haml (= 3.1.2)
heroku
hoptoad_notifier
http_accept_language!
i18n-inflector-rails (~> 1.0)
......
namespace :heroku do
task :config do
puts "Reading config/application.yml and sending config vars to Heroku..."
CONFIG = YAML.load_file('config/application.yml')['production'] rescue {}
command = "heroku config:add"
CONFIG.each {|key, val| command << " #{key}=#{val} " if val }
system command
end
end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter