Ruby on Rails Tuesday, July 7, 2015

On 7 July 2015 at 10:18, Marco Dias <dias.m27@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-talk+unsubscribe@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/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+unsubscribe@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/CAL%3D0gLuPFVLuuTC7pO%2BLLpoHfya2%2BPzWfd1uqo2ZA6e-1E4WhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment