Hi All,
I'm trying to write a rake task that requires additional data
command:
rake USER=user1 lovdbyless:admin
rake file:
namespace :lovdbyless do
task :admin => :environment do
login=ENV['ADMIN']
if login.blank?
puts "please pass ADMIN=<login> to make an admin"
else
User.make_admin(login)
end
end
end
local development works great
running on heroku fails (via heroku rake ...)
It looks like the environment variable is not getting passed
Is there a better way to pass data to rake?
(is it something that I am doing, or is it a bug in the heroku/rake
command?)
Thanks,
Keenan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---