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.
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
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.
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!?
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.
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.
Tekin Suleyman wrote: > 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!?
> 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.
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.
> 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!?
> 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.
> 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
> Tekin Suleyman wrote: >> 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!?
>> 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.
>> 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
>> Tekin Suleyman wrote:
>>> 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!?
>>> 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.
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/]
>>> 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
>>> Tekin Suleyman wrote: >>>> 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!?
>>>> 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.
Francis Fish wrote: > 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.