[Trac] Re: Two trac versions, one box

2009-02-10 Thread Eirik Schwenke

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Oliver Marshall skrev 10. feb. 2009 09:58:
 Hi chaps,
 
 Is it possible to run two versions of Trac on one server? We are using a 
 normal Trac install at the moment with SVN. However we are working on a new 
 product for some clients which is based on a highly modified version of Trac. 
 Currently we are looking at a separate box each, though this is only because 
 the tech's don't know if (how) we can run both versions on one server.
 
 The current Trac setup is more than enough to handle all the requests so I'm 
 keen to save some budget and get the one box working for it's dinner.
 
 Anyone know whether this is possible at all ?

If the system now is able to run a newer version of trac (ie you have a
reasonably up to date python available) -- there shouldn't be a problem.

You have a couple of options, depending on how much separation you want/need
between the to instances. You might want to look at:

  http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup

for a general overview of how to use trac and python's virtualenv together.
It's a great way to set up test-environments for trac, without creating
problems for your regular installs.

If you want more separation than this, you might look at runnig a chroot or a
vserver/jail if your server is a linux or *bsd box. Personally I'm a great fan
of Debian, and the combination of cdebootstrap and the schroot or vserver
packages is a great way to run certain packages from eg. sid/unstable on a
server running mainly etch/stable code.


Hope this helps to get you started.


Best regards,

- --
 .---.  Eirik Schwenke eirik.schwe...@nsd.uib.no
( NSD ) Harald Hårfagresgate 29Rom 150
 '---'  N-5007 Bergentlf: (555) 889 13

  GPG-key at pgp.mit.edu  Id 0x8AA3392C
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmRVmIACgkQxUW7FIqjOSy0kACeNJbU9873GB+NntsrRnLenSy4
h8UAoIdmIw1W5NFxrW5H4tdCK1IGNQCc
=Lp+Y
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Two trac versions, one box

2009-02-10 Thread Flatfender

On Tue, Feb 10, 2009 at 5:26 AM, Eirik Schwenke
eirik.schwe...@nsd.uib.no wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Oliver Marshall skrev 10. feb. 2009 09:58:
 Hi chaps,

 Is it possible to run two versions of Trac on one server? We are using a 
 normal Trac install at the moment with SVN. However we are working on a new 
 product for some clients which is based on a highly modified version of 
 Trac. Currently we are looking at a separate box each, though this is only 
 because the tech's don't know if (how) we can run both versions on one 
 server.

 The current Trac setup is more than enough to handle all the requests so I'm 
 keen to save some budget and get the one box working for it's dinner.

 Anyone know whether this is possible at all ?

 If the system now is able to run a newer version of trac (ie you have a
 reasonably up to date python available) -- there shouldn't be a problem.

 You have a couple of options, depending on how much separation you want/need
 between the to instances. You might want to look at:

  http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup

 for a general overview of how to use trac and python's virtualenv together.
 It's a great way to set up test-environments for trac, without creating
 problems for your regular installs.

 If you want more separation than this, you might look at runnig a chroot or a
 vserver/jail if your server is a linux or *bsd box. Personally I'm a great fan
 of Debian, and the combination of cdebootstrap and the schroot or vserver
 packages is a great way to run certain packages from eg. sid/unstable on a
 server running mainly etch/stable code.


 Hope this helps to get you started.


 Best regards,

 - --
  .---.  Eirik Schwenke eirik.schwe...@nsd.uib.no
 ( NSD ) Harald Hårfagresgate 29Rom 150
  '---'  N-5007 Bergentlf: (555) 889 13

  GPG-key at pgp.mit.edu  Id 0x8AA3392C
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmRVmIACgkQxUW7FIqjOSy0kACeNJbU9873GB+NntsrRnLenSy4
 h8UAoIdmIw1W5NFxrW5H4tdCK1IGNQCc
 =Lp+Y
 -END PGP SIGNATURE-

 


I would think you could use two different virtual hosts with apache
and then use mod_wsgi and have your wrapper scripts point to each
separate trac install.

Matt P.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Two trac versions, one box

2009-02-10 Thread Remy Blank
Oliver Marshall wrote:
 Is it possible to run two versions of Trac on one server?

Sure, have a look at virtualenv:

  http://pypi.python.org/pypi/virtualenv

-- Remy



signature.asc
Description: OpenPGP digital signature


[Trac] Re: Two trac versions, one box

2009-02-10 Thread Graham Dumpleton



On Feb 11, 1:52 am, Flatfender flatfen...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 5:26 AM, Eirik Schwenke

 eirik.schwe...@nsd.uib.no wrote:
  Oliver Marshall skrev 10. feb. 2009 09:58:
  Hi chaps,

  Is it possible to run two versions of Trac on one server? We are using a 
  normal Trac install at the moment with SVN. However we are working on a 
  new product for some clients which is based on a highly modified version 
  of Trac. Currently we are looking at a separate box each, though this is 
  only because the tech's don't know if (how) we can run both versions on 
  one server.

  The current Trac setup is more than enough to handle all the requests so 
  I'm keen to save some budget and get the one box working for it's dinner.

  Anyone know whether this is possible at all ?

  If the system now is able to run a newer version of trac (ie you have a
  reasonably up to date python available) -- there shouldn't be a problem.

  You have a couple of options, depending on how much separation you want/need
  between the to instances. You might want to look at:

   http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup

  for a general overview of how to use trac and python's virtualenv together.
  It's a great way to set up test-environments for trac, without creating
  problems for your regular installs.

  If you want more separation than this, you might look at runnig a chroot or 
  a
  vserver/jail if your server is a linux or *bsd box. Personally I'm a great 
  fan
  of Debian, and the combination of cdebootstrap and the schroot or vserver
  packages is a great way to run certain packages from eg. sid/unstable on a
  server running mainly etch/stable code.

  Hope this helps to get you started.

 I would think you could use two different virtual hosts with apache
 and then usemod_wsgiand have your wrapper scripts point to each
 separate trac install.

It doesn't have to be two virtual hosts, mod_wsgi separates based on
WSGI application mount point.

Either way, you would be much better of delegating each instance to
separate daemon process and separate virtual environment so no risk of
interference, especially if different versions of C extension modules
used.

For further details see:

  http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac
  http://code.google.com/p/modwsgi/wiki/VirtualEnvironments

Graham

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---