Ruby on Rails
Tuesday, July 7, 2015
Thanks, I updated my answer :
-- I did : whenever --update-crontab --set environment=development
Le mardi 7 juillet 2015 11:30:05 UTC+2, Colin Law a écrit :
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 ?
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+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/c3554d1b-146b-4cd6-a266-e0be74065466%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment