Google Groups Home
Help | Sign in
View changes not appearing (have to restart server to see them)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
David Spurr  
View profile
 More options 17 Jul, 19:19
From: David Spurr <david.sp...@gmail.com>
Date: Thu, 17 Jul 2008 19:19:02 +0100
Local: Thurs 17 Jul 2008 19:19
Subject: View changes not appearing (have to restart server to see them)

I have a strange problem, whenever I make changes to the views the
changes do not appear in the browser, I've also run Charles and I can
see that the response does not contain the changes (but it does return a
fresh 200 status after the change and then goes back to 304 Not Modified
if I continue to refresh). The only way I can get the view changes to
appear is by restarting the appropriate HTTP server (I've tried Mongrel,
Webrick and Passenger).

When Mongrel starts it does say "** Starting Rails with development
environment..." so it's not that it's running in production mode, and
I've done the config with Passenger to ensure it's not running in
production.

My setup is as follows:

    Codebase on local machine (OS X), shared using samba.
    Application environment (ruby, gems, mysql etc.) within a Ubuntu
    Server install running inside a Parallels VM.

As you can probably understand this is causing my development cycle to
be a lot slower than it should be.

Any advice is greatly appreciated.

-D

p.s. I don't think that the samba share is an issue, as autotest sees
the file changes instantly and re-runs the appropriate test when that's
running.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tekin Suleyman  
View profile
 More options 17 Jul, 19:42
From: Tekin Suleyman <te...@tekin.co.uk>
Date: Thu, 17 Jul 2008 19:42:30 +0100
Local: Thurs 17 Jul 2008 19:42
Subject: Re: [NWRUG] View changes not appearing (have to restart server to see them)

Are you in development mode? As of Rails 2.0.2, templates are cached  
to a method in production mode to speed up rendering. Check your  
environment's config and look out for  
config.action_view.cache_template_loading

Tekin Suleyman

Freelance Ruby on Rails Developer
http://tekin.co.uk

On 17 Jul 2008, at 19:19, David Spurr wrote:

I have a strange problem, whenever I make changes to the views the  
changes do not appear in the browser, I've also run Charles and I can  
see that the response does not contain the changes (but it does return  
a fresh 200 status after the change and then goes back to 304 Not  
Modified if I continue to refresh). The only way I can get the view  
changes to appear is by restarting the appropriate HTTP server (I've  
tried Mongrel, Webrick and Passenger).

When Mongrel starts it does say "** Starting Rails with development  
environment..." so it's not that it's running in production mode, and
I've done the config with Passenger to ensure it's not running in  
production.

My setup is as follows:
Codebase on local machine (OS X), shared using samba.
Application environment (ruby, gems, mysql etc.) within a Ubuntu
Server install running inside a Parallels VM.
As you can probably understand this is causing my development cycle to  
be a lot slower than it should be.

Any advice is greatly appreciated.

-D

p.s. I don't think that the samba share is an issue, as autotest sees  
the file changes instantly and re-runs the appropriate test when  
that's running.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tekin Suleyman  
View profile
 More options 17 Jul, 19:44
From: Tekin Suleyman <te...@tekin.co.uk>
Date: Thu, 17 Jul 2008 19:44:37 +0100
Local: Thurs 17 Jul 2008 19:44
Subject: Re: [NWRUG] View changes not appearing (have to restart server to see them)

Sorry, I read too quickly and missed the bit about being in  
development... But I'm a bit confused, if you are running it on  
passenger, then you shouldn't be using mongrel surely!?

Tekin Suleyman

Freelance Ruby on Rails Developer
http://tekin.co.uk

On 17 Jul 2008, at 19:19, David Spurr wrote:

I have a strange problem, whenever I make changes to the views the  
changes do not appear in the browser, I've also run Charles and I can  
see that the response does not contain the changes (but it does return  
a fresh 200 status after the change and then goes back to 304 Not  
Modified if I continue to refresh). The only way I can get the view  
changes to appear is by restarting the appropriate HTTP server (I've  
tried Mongrel, Webrick and Passenger).

When Mongrel starts it does say "** Starting Rails with development  
environment..." so it's not that it's running in production mode, and
I've done the config with Passenger to ensure it's not running in  
production.

My setup is as follows:
Codebase on local machine (OS X), shared using samba.
Application environment (ruby, gems, mysql etc.) within a Ubuntu
Server install running inside a Parallels VM.
As you can probably understand this is causing my development cycle to  
be a lot slower than it should be.

Any advice is greatly appreciated.

-D

p.s. I don't think that the samba share is an issue, as autotest sees  
the file changes instantly and re-runs the appropriate test when  
that's running.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Spurr  
View profile
 More options 17 Jul, 19:46
From: David Spurr <david.sp...@gmail.com>
Date: Thu, 17 Jul 2008 19:46:50 +0100
Local: Thurs 17 Jul 2008 19:46
Subject: Re: [NWRUG] Re: View changes not appearing (have to restart server to see them)

That setting is only in my production.rb config file. I am on passenger,
but I tried mongrel just to make sure it wasn't a config issue with
passenger not picking up the rails env setting I'd put in the virtual host.

Basically I tried all three of the different server options (Mongrel,
Passenger & Webrick) and have the exact same issue with all three... and
I can be certain that Mongrel (at least) is in development mode as it
says it when it starts up.

-D


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tekin Suleyman  
View profile
 More options 17 Jul, 19:58
From: Tekin Suleyman <te...@tekin.co.uk>
Date: Thu, 17 Jul 2008 19:58:23 +0100
Local: Thurs 17 Jul 2008 19:58
Subject: Re: [NWRUG] Re: View changes not appearing (have to restart server to see them)

And is config.action_view.cache_template_loading set to false in your  
development.rb? If so, I'm out of ideas.

Tekin Suleyman

Freelance Ruby on Rails Developer
http://tekin.co.uk

On 17 Jul 2008, at 19:46, David Spurr wrote:

That setting is only in my production.rb config file. I am on  
passenger, but I tried mongrel just to make sure it wasn't a config  
issue with passenger not picking up the rails env setting I'd put in  
the virtual host.

Basically I tried all three of the different server options (Mongrel,  
Passenger & Webrick) and have the exact same issue with all three...  
and I can be certain that Mongrel (at least) is in development mode as  
it says it when it starts up.

-D


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Spurr  
View profile
 More options 17 Jul, 20:05
From: David Spurr <david.sp...@gmail.com>
Date: Thu, 17 Jul 2008 20:05:36 +0100
Local: Thurs 17 Jul 2008 20:05
Subject: Re: [NWRUG] Re: View changes not appearing (have to restart server to see them)

That wasn't in the development.rb, I added it and set it to false. Still
no difference.

Just found this... http://railsforum.com/viewtopic.php?id=19268 why on
earth would my network share make a difference?

-D


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alistair Holt  
View profile
 More options 17 Jul, 20:29
From: Alistair Holt <alistairh...@gmail.com>
Date: Thu, 17 Jul 2008 20:29:44 +0100
Local: Thurs 17 Jul 2008 20:29
Subject: Re: [NWRUG] Re: View changes not appearing (have to restart server to see them)

Are you looking at a cached file or is the request actually hitting  
Rails?

Can you paste the code you get in development.log when making the  
request?

Alistair Holt

On 17 Jul 2008, at 20:05, David Spurr <david.sp...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Spurr  
View profile
 More options 17 Jul, 22:13
From: David Spurr <david.sp...@gmail.com>
Date: Thu, 17 Jul 2008 22:13:27 +0100
Local: Thurs 17 Jul 2008 22:13
Subject: Re: [NWRUG] Re: View changes not appearing (have to restart server to see them)

Here's the development.log between the first and second request I edited
the sessions/new.html.erb view and as before the change hasn't appeared
in the browser.

# Logfile created on Thu Jul 17 23:10:30 +0100 2008** SubdomainFu:
initialized properly

Processing SessionsController#new (for 192.168.1.68 at 2008-07-17
23:10:30) [GET]
  Session ID: 081edbcecc5fffebeec90c9856626631
  Parameters: {"action"=>"new", "controller"=>"sessions"}
  SQL (0.000203)   SET NAMES 'utf8'
  SQL (0.000150)   SET SQL_AUTO_IS_NULL=0
  Account Columns (0.000939)   SHOW FIELDS FROM `accounts`
  Account Load (0.000444)   SELECT * FROM `accounts` WHERE
(`accounts`.`key` = 'initech') LIMIT 1
Rendering template within layouts/application
Rendering sessions/new
Completed in 0.05822 (17 reqs/sec) | Rendering: 0.02124 (36%) | DB:
0.00174 (2%) | 200 OK [http://initech.skillstrak.local/]

Processing SessionsController#new (for 192.168.1.68 at 2008-07-17
23:11:13) [GET]
  Session ID: BAh7BzoMY3NyZl9pZCIlOTNjMWFjMTI4ODE2MzhkYTUxZjQxZThmZDc4ZDhi
MzkiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh
c2h7AAY6CkB1c2VkewA=--ee52e8a0f5affe387089bb24633557774db34384
  Parameters: {"action"=>"new", "controller"=>"sessions"}
  Account Columns (0.001016)   SHOW FIELDS FROM `accounts`
  Account Load (0.000128)   SELECT * FROM `accounts` WHERE
(`accounts`.`key` = 'initech') LIMIT 1
Rendering template within layouts/application
Rendering sessions/new
Completed in 0.02017 (49 reqs/sec) | Rendering: 0.00411 (20%) | DB:
0.00114 (5%) | 200 OK [http://initech.skillstrak.local/]

-D


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francis Fish  
View profile
 More options 18 Jul, 10:35
From: "Francis Fish" <francis.f...@gmail.com>
Date: Fri, 18 Jul 2008 10:35:27 +0100
Local: Fri 18 Jul 2008 10:35
Subject: Re: [NWRUG] Re: View changes not appearing (have to restart server to see them)

There was something about this on the Rails Envy podcast about 6 weeks ago,
but I can't remember the details. Might be worth a gander.

F


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Spurr  
View profile
 More options 18 Jul, 11:25
From: David Spurr <david.sp...@gmail.com>
Date: Fri, 18 Jul 2008 11:25:35 +0100
Local: Fri 18 Jul 2008 11:25
Subject: Re: [NWRUG] Re: View changes not appearing (have to restart server to see them)
I can't find the podcast you're talking about by looking at the show
notes, guess I'm gonna have to listen to the past 8 weeks worth to find
it...

-D


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francis Fish  
View profile
 More options 18 Jul, 11:44
From: Francis Fish <francis.f...@gmail.com>
Date: Fri, 18 Jul 2008 11:44:41 +0100
Local: Fri 18 Jul 2008 11:44
Subject: Re: [NWRUG] Re: View changes not appearing (have to restart server to see them)