# Development on nfs share

**URL:** <https://www.ruby-forum.com/t/development-on-nfs-share/103052>\
**Category:** Rails\
**Created:** [May 1, 2007, 8:41am UTC](https://www.ruby-forum.com/t/development-on-nfs-share/103052 "2007-05-01T08:41:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fredrik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Post date:** [May 1, 2007, 8:41am UTC](https://www.ruby-forum.com/t/development-on-nfs-share/103052/1 "2007-05-01T08:41:32Z")

</div>

Is there any way to end up somewhere in between the development  
environment and production environment as far as refreshing the  
source on every request.  
Our setup is that we work off of nfs shares which makes it extremely  
slow for a page load in development since it has to pull in the whole  
app on each request.  
I’m used to it by now and only get a few changes in an hour :).  
Just curious if there is a way to help this without running on  
localhost which is not a good option for us.

Thanks,  
Fredrik

---

<div class="post-metadata">

**Author:** ![Fredrik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Post date:** [May 1, 2007, 8:54am UTC](https://www.ruby-forum.com/t/development-on-nfs-share/103052/2 "2007-05-01T08:54:25Z")

</div>

Fred, I think you can avoid your problem by using a rtmv script joint  
with a sqrtvm fixture. It’s eaay. If you have any problem, just mail me.  
I’ll be happy to help you. I use to go out with Bill Gates’ grand  
daugher. Man, she was nasty. Kinda fish tacos…

Fredrik wrote:

> Is there any way to end up somewhere in between the development  
> environment and production environment as far as refreshing the  
> source on every request.  
> Our setup is that we work off of nfs shares which makes it extremely  
> slow for a page load in development since it has to pull in the whole  
> app on each request.  
> I’m used to it by now and only get a few changes in an hour :).  
> Just curious if there is a way to help this without running on  
> localhost which is not a good option for us.
> 
> Thanks,  
> Fredrik

---

<div class="post-metadata">

**Author:** ![Fredrik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Post date:** [May 1, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/development-on-nfs-share/103052/3 "2007-05-01T15:35:05Z")

</div>

lol. What? No idea what you just said, but thanks. 🙂

Fredrik

---

<div class="post-metadata">

**Author:** ![Fredrik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Post date:** [May 1, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/development-on-nfs-share/103052/4 "2007-05-01T21:57:49Z")

</div>

It was kind of a long shot, I know. Just editing the development.rb is  
what I was thinking but I have no idea what to change there. I still  
want to refresh the controllers/views/models, but prehaps only the one  
being requested, which would be nice.

Fredrik

---

<div class="post-metadata">

**Author:** ![Fredrik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Post date:** [May 1, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/development-on-nfs-share/103052/5 "2007-05-01T20:56:42Z")

</div>

I think Joshua was very bombed last night… or just a general troll.

Anyway, as far as I understand rails environments, they are just ruby  
settings files that are loaded after the main environment.rb is loaded.

So you should be able to create something like a staging.rb environment  
file and put your settings in there. Then specify -e staging when  
starting mongrel (or whatever your server’s equivalent is).

As for what settings go in there to achieve the effect you want…  
you’ll have to figure that out… or maybe someone else can help.

b

---

<div class="post-metadata">

**Author:** ![Fredrik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Post date:** [May 1, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/development-on-nfs-share/103052/6 "2007-05-01T23:59:52Z")

</div>

Fredrik wrote:

> It was kind of a long shot, I know. Just editing the development.rb is  
> what I was thinking but I have no idea what to change there. I still  
> want to refresh the controllers/views/models, but prehaps only the one  
> being requested, which would be nice.
> 
> Fredrik

in production/development/etc…rb you can set config.cache\_classes =  
true to control whether or not classes are cached.

Fred
