Hey, sorry for the off topic email, but I appreciate any feedback you guys can give me. I just put together a new box and installed Ubuntu linux on it. I''m coming from a totally windows environment, so I''m having some trouble getting my head around the linux file system and where things "should" go. I am trying to create a nice development environment for myself and my rails projects. I just wanna get an idea of how everyone has setup their linux environment and where they keep their files, folders, repositories, etc. What I have so far is - /home/ramin/dev/projects/rails/<project name> - /var/svn/repos/ Not sure if thats the best place to put my svn repository. Where would you guys recommend? Should I just stick it into my own user folder, somewhere like /home/ramin/dev/repos ? I thought I''d put it in a more global are, incase I have more users later and they need to add projects to the repository. I also intalled trac using apt-get but now I''m not so sure how to setup the Trac Environment. Do I put it in a global area or under my own user folder or under each project? Am I supposed to create a new trac env. for each project or do they all share the same env.? The same question would apply to svn as well I guess. Thanks in advance to any help regarding this matter -- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 5/8/05, Ramin <i8ramin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey, sorry for the off topic email, but I appreciate any feedback you guys > can give me.This list is predominently OS X users, so I''m not sure how much help you''ll find here... I use Ubuntu though, so maybe I can help a bit.> I just put together a new box and installed Ubuntu linux on it. I''m coming > from a totally windows environment, so I''m having some trouble getting my > head around the linux file system and where things "should" go.There''s lots of great resources online. Just a google away ;)> I am trying to create a nice development environment for myself and my > rails projects. I just wanna get an idea of how everyone has setup their > linux environment and where they keep their files, folders, repositories, > etc. > > What I have so far is > > - /home/ramin/dev/projects/rails/<project name> > - /var/svn/repos/I''m not quite sure what the point of "dev/projects/rails" is. Unless you''re planning to do a love of "dev"elopment on things that aren''t projects, and a lot of projects that aren''t in rails. Rails itself will force deep heirarchies on you, like "app/views/foobar/" and the like, you''ll find this deep heirarchy getting tiresome quickly.> Not sure if thats the best place to put my svn repository. Where would you > guys recommend? Should I just stick it into my own user folder, somewhere > like /home/ramin/dev/repos ? I thought I''d put it in a more global are, > incase I have more users later and they need to add projects to the > repository./var is popularly used for data that changes a lot, for example, most linux webservers will, by default, look to serve web content from /var/www and you''ll find other similar subdirectories in /var The great thing about linux is that none of the heirarchy is enforced by the system and it''s all just largely organized by tradition. Of course a lot of apps will assume that things are set up a certain way, but since you''re setting up rails from scratch, you can really put it wherever you want and it doesn''t matter too much. Personally, I put all my web content into /home/www (including rails projects & the like), but that''s only because on my system, there''s an 80GB drive mounted onto /home, whereas / itself is a smaller 3GB partition. I *would have* put rails into /var/www, but that would have been on the small 3GB partition, and though it would have fit, I preferred having it on my /home partition, which is where I keep al my personal files anyway (eg, / gets formatted when I change distros, but /home is eternal).> I also intalled trac using apt-get but now I''m not so sure how to setup the > Trac Environment. Do I put it in a global area or under my own user folder > or under each project? Am I supposed to create a new trac env. for each > project or do they all share the same env.? The same question would apply to > svn as well I guess.Never used trac or svn, can''t help you there, sorry. -- Urban Artography http://artography.ath.cx
Henrik Horneber
2005-May-08 08:46 UTC
Re: [OT] Linux Development Environment - suggestions
> >> I also intalled trac using apt-get but now I''m not so sure how to setup the >>Trac Environment. Do I put it in a global area or under my own user folder >>or under each project? Am I supposed to create a new trac env. for each >>project or do they all share the same env.? The same question would apply to >>svn as well I guess. > > > Never used trac or svn, can''t help you there, sorry. >Using ubuntu here (predominantly OS X? Sheesh, we just don''t brag so much about it, but we''re here, too ;))). I installed Trac using this guide. http://projects.edgewall.com/trac/wiki/TracOnUbuntu and svn following http://www.ubuntulinux.org/wiki/SubVersion Both worked very well. Quoting http://projects.edgewall.com/trac/wiki/TracFaq#can-i-manage-multiple-projects-from-a-single-installation-of-trac "2.6 Can I manage multiple projects from a single installation of Trac? (or do I have to setup a different directory for each one?) Only one installation is required, then for each project create an Environment (using trac-admin <fooproj> initenv). They will be separate projects, all handled by the same installation of Trac. The rationale for this is that the scope of Trac (1.0) is to manage a single project, and do it well. Support for larger multi-project management adds alot of complexity, but is planned for post-1.0 development, probably as a separate framework around Trac." So, you are supposed to add a new Trac environment for each svn repository. So it boils down to the question if you should have different svn repositories for each rails project. I /think/ this is pretty much down to your personal preference. Don''t know. My trav environment lives under /var/trac, but that isn''t necessary at all. Hope that helps, feel free to send me private mails if you have further questions. Henrik
Thanks alot for the feedback guys.. I think I have a better understanding now. I ended up putting both trac and svn uder /var, so my setup is now - /var/trac/<project> - /var/svn/<project> - /home/ramin/dev/projects/rails/<project name> the last one I''m probably gonna change. Cause I agree with Rob that there is not point for the dev folder. Unless of course I start doing other "types" of projects, like "design" ? But most likely any design work I do will be for a project that will need development work as well. I will check out the links and tutorials. I already followed the UbuntuTrac one and it works very nicely. Thanks again! On 5/8/05, Henrik Horneber <ryco-hi6Y0CQ0nG0@public.gmane.org> wrote:> > > > > >> I also intalled trac using apt-get but now I''m not so sure how to setup > the > >>Trac Environment. Do I put it in a global area or under my own user > folder > >>or under each project? Am I supposed to create a new trac env. for each > >>project or do they all share the same env.? The same question would > apply to > >>svn as well I guess. > > > > > > Never used trac or svn, can''t help you there, sorry. > > > > Using ubuntu here (predominantly OS X? Sheesh, we just don''t brag so > much about it, but we''re here, too ;))). I installed Trac using this > guide. http://projects.edgewall.com/trac/wiki/TracOnUbuntu and svn > following > http://www.ubuntulinux.org/wiki/SubVersion > > Both worked very well. > Quoting > > http://projects.edgewall.com/trac/wiki/TracFaq#can-i-manage-multiple-projects-from-a-single-installation-of-trac > > "2.6 Can I manage multiple projects from a single installation of Trac? > > (or do I have to setup a different directory for each one?) > > Only one installation is required, then for each project create an > Environment (using trac-admin <fooproj> initenv). They will be separate > projects, all handled by the same installation of Trac. > > The rationale for this is that the scope of Trac (1.0) is to manage a > single project, and do it well. Support for larger multi-project > management adds alot of complexity, but is planned for post-1.0 > development, probably as a separate framework around Trac." > > So, you are supposed to add a new Trac environment for each svn > repository. So it boils down to the question if you should have > different svn repositories for each rails project. I /think/ this is > pretty much down to your personal preference. Don''t know. > > My trav environment lives under /var/trac, but that isn''t necessary at > all. > > Hope that helps, feel free to send me private mails if you have > further questions. > > Henrik > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails