Re: [Rails] Re: easy scheduling without cron
On 18 March 2011 01:22, Matt Jones <al2o3cr@gmail.com> wrote:
> On Mar 17, 7:00 pm, Alexander Farley <li...@ruby-forum.com> wrote:
>> Hi, my server doesn't allow shell access or scripts. What's the easiest
>> way to schedule a script, from within ruby/rails?
>
> Get a new host that doesn't suck. Seriously, VPS hosting is crazy
> cheap nowadays and doesn't have bizarro restrictions like "no shell
> access".
+1
But if you're stuck where you are, you can use a "webcron" service to
periodically make a request to an action on your server, which then
fires off the process. So have a controller call "WebCron" with
actions like "calculate_stats" and call
http://your.url/web_cron/calculate_stats
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home