On Jul 7, 2015, at 5:32 AM, Marco Dias <dias....@gmail.com> wrote:

> Thanks, I updated my answer :
> 
> I did : whenever --update-crontab --set environment=development
> 
> And it worked in development, I could see in development.log that it sent the 
> mail each 5 minutes. Good. Do I have to change this line and write 
> environment=production or it'll work like this if the project is put on a 
> server ?

You'll have to shell into the server and run the command on the server with the 
environment=production flag. Whenever makes a crontab entry for your job, and 
it has to do that in the actual crontab on the server, not on your dev machine.

Walter

> 
> Le mardi 7 juillet 2015 11:30:05 UTC+2, Colin Law a écrit :
> On 7 July 2015 at 10:18, Marco Dias <dias...@gmail.com> wrote: 
> > It doesn't seem to work in development mode. How can I do that ? 
> 
> By specifying RAILS_ENV=development in your cron task instead of production. 
> 
> Colin 
> 
> > 
> > Le lundi 6 juillet 2015 20:56:42 UTC+2, Hassan Schroeder a écrit : 
> >> 
> >> On Mon, Jul 6, 2015 at 11:46 AM, Marco Dias <dias...@gmail.com> wrote: 
> >> 
> >> > So it sent mails to the only two users that had daily == true, so my 
> >> > method 
> >> > work. But is the scheduled job working ? 
> >> 
> >> It's just a cron job. Change the target time to e.g. five minutes from 
> >> now, go get a cup of coffee and see what's happened when you get 
> >> back :-) 
> >> 
> >> -- 
> >> Hassan Schroeder ------------------------ hassan.s...@gmail.com 
> >> http://about.me/hassanschroeder 
> >> twitter: @hassan 
> >> Consulting Availability : Silicon Valley or remote 
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "Ruby on Rails: Talk" group. 
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to rubyonrails-ta...@googlegroups.com. 
> > To post to this group, send email to rubyonra...@googlegroups.com. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/rubyonrails-talk/28aa9547-1925-4437-b709-74839a0386c1%40googlegroups.com.
> >  
> > 
> > For more options, visit https://groups.google.com/d/optout. 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/c3554d1b-146b-4cd6-a266-e0be74065466%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/C58C5916-C454-4231-8A6C-C255BC050A66%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to