# Where to place rails projects on a linux server?

**URL:** <https://www.ruby-forum.com/t/where-to-place-rails-projects-on-a-linux-server/86886>\
**Category:** Rails\
**Created:** [February 26, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/where-to-place-rails-projects-on-a-linux-server/86886 "2007-02-26T19:14:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [February 26, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/where-to-place-rails-projects-on-a-linux-server/86886/1 "2007-02-26T19:14:04Z")

</div>

I just got my own server installed and ready to go with red hat on it. I  
was just curious where the proper place would be to place all of my  
rails projects?

usr/local?  
usr/local/src?

/rails\_projects?

Just need to know the proper place to put them.

Thanks!

---

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [February 26, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/where-to-place-rails-projects-on-a-linux-server/86886/2 "2007-02-26T19:28:22Z")

</div>

Personally I just create a user for each project, and host it a  
subdirectory.

For a petworld project  
/home/petworld/production/live

Ben J. wrote:

> I just got my own server installed and ready to go with red hat on it. I  
> was just curious where the proper place would be to place all of my  
> rails projects?
> 
> usr/local?  
> usr/local/src?
> 
> /rails\_projects?
> 
> Just need to know the proper place to put them.
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [February 26, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/where-to-place-rails-projects-on-a-linux-server/86886/3 "2007-02-26T19:42:43Z")

</div>

Develop or deploy?

On my home machine I have a main rails subdirectory under my home  
directory  
where I do development.

On my home machine: Deployment via Apache is under the servers home  
directory - /var/www/ on my machine.

If you are on a hosting service it depends on where they give you space.  
On Dreamhost I have lots of directories above and beyond the one for  
each  
domain and subdomain, but they all have to be under my home - that’s the  
way  
Dreamhost works.

If you have VPS then its as if you owned the machine … but stick with  
some scheme, don’t dance around. I’d put deployed stuff under /var/www  
but  
then I’m used to \*NIX conventions.

---

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [February 26, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/where-to-place-rails-projects-on-a-linux-server/86886/4 "2007-02-26T19:45:08Z")

</div>

David H. wrote:

> Personally I just create a user for each project, and host it a  
> subdirectory.
> 
> For a petworld project  
> /home/petworld/production/live

That’s not a bad way to do it, but I think creating a user for actual  
users is probably a better idea. Then I can just group each user and  
give each group access to a specific project. Just wondering where to  
put this projects directory where it makes sense, since many different  
users will be accessing a specific project.
