I agree with you Tim but I have tried this idea.
Whats happen is server is started but the service on the particular port is
not being start because of that forever loop, this one is being problem in
my app.

Can u give me any more suggestion? and ya one more thing I don't want to use
Thread class..

Thanks Tim.


On Wed, May 11, 2011 at 7:39 PM, Tim Shaffer <[email protected]> wrote:

> I guess it might help to understand what your code is trying to do.
>
> But if this is the code you want to execute when the server starts:
>
>
> #do some magic and start the cron
>
> You could just put that in an initializer, and it will be executed when the
> server starts.
>
>  --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to