Ruby on Rails Thursday, April 3, 2014



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. 

--
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.

No comments:

Post a Comment