Ruby on Rails Thursday, April 3, 2014

On Apr 3, 2014, at 11:20 AM, mike2r wrote:

>
>
> On Thursday, April 3, 2014 10:30:48 AM UTC-4, Walter Lee Davis wrote:
> I am working on a Rails 3.0 application, and I just made a change to an erb view template, reloaded the page in my browser (from the server, not development) and the change was instantly available. This tells me that the template isn't being pre-cached, and I can't see why. I've looked through the production environment file, there are no configuration statements that leap out at me regarding this, and I am certain that I have had to restart my application in order for view changes to be picked up in the past. Can anyone suggest a place to look where this behavior might be overridden?
>
> Thanks,
>
> Walter
>
> would need to know your server environment. We use passenger. when we deploy, it touches the file /tmp/restart.txt, changing the date/time stamp on the file. Passenger picks this up and automatically reloads the application when that has changed. It is possible to configure Passenger to always do that regardless of the timestamp, but obviously you would be taking a significant performance hit.

Also using Passenger, with Apache 2.2. Have never made any such configuration changes -- deploy the same way on all sites I've ever done, and I also use the restart.txt trick to roll the server. I can confirm that that file is not being touched when I upload new code. I am concerned that I am taking such a performance hit, and I'd like to stop that, naturally.

Looking into this, I see my Ruby and Passenger are quite out of date. Recompiling now, let's see if that helps any.

Thanks,

Walter

>
> --
> 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/8c5994ac-3323-4586-98cc-cd42d6ea5e5b%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/4E3B954E-3191-4DA7-A8D8-7F0F8A9D4AD2%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment