You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Whenever Gem
So whenever defaults to using production environment.
I can change that by adding "set :environment, :development" in
schedule.rb, but I want it to work regardless of environment... any
help?
Javan Makhmali
unread,
Oct 16, 2009, 4:15:46 PM10/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to whenev...@googlegroups.com
That looks useful, but where do you do that at?
Also, I noticed this page: http://wiki.github.com/javan/whenever/automatically-detecting-environment
which looks like exactly what I need. The only problem is that it doesn't work for me because "File.expand_path(__FILE__)" does not contain the environment. I'm using rails 2.3.4, if that makes any difference.
Javan Makhmali
unread,
Oct 16, 2009, 4:48:44 PM10/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to whenev...@googlegroups.com
You would do that in your deploy.rb file or wherever you're calling the `whenever' command from. Or perhaps in your schedule.rb file you could set :environment, RAILS_ENV
Tyler Brown
unread,
Oct 16, 2009, 5:02:25 PM10/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to whenev...@googlegroups.com
ahhhh yes, "set :environment, RAILS_ENV" did the trick. thanks! sorry, I'm new to rails :)