Are there any good references to setting up and using multiple Zope instances? -- John
John Poltorak wrote:
Are there any good references to setting up and using multiple Zope instances?
Much the same as setting up one ;-) What's the stuff that's worrying you? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
On Wed, Mar 10, 2004 at 02:45:11PM +0000, Chris Withers wrote:
John Poltorak wrote:
Are there any good references to setting up and using multiple Zope instances?
Much the same as setting up one ;-)
What's the stuff that's worrying you?
I want to have a production Zope and one for testing/learning on the same machine. I can't visualise how this would work. As I see it you only need one lot of software but two databases. If that is the case I don't know how you would add the second.
cheers,
Chris
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
-- John
John Poltorak wrote:
Are there any good references to setting up and using multiple Zope instances?
I want to have a production Zope and one for testing/learning on the same machine.
I can't visualise how this would work. As I see it you only need one lot of software but two databases. If that is the case I don't know how you would add the second.
You want to look into the environment variable "INSTANCE_HOME". This is where Zope will store all of it's data. So starting two Zope's with two different "INSTANCE_HOME" (and listening on different ports, obviously) will give you what you want. I'm not sure on any references for your distro in particular, but just look at the start script that comes with Zope. I think it sets INSTANCE_HOME to the location of the start script itself using some bash backtick-fu. Just make two copies of this script and change the INSTANCE_HOME to in each one to the locations you want. JZ
John Poltorak wrote:
On Wed, Mar 10, 2004 at 02:45:11PM +0000, Chris Withers wrote:
John Poltorak wrote:
Are there any good references to setting up and using multiple Zope instances?
Much the same as setting up one ;-)
What's the stuff that's worrying you?
I want to have a production Zope and one for testing/learning on the same machine.
I can't visualise how this would work. As I see it you only need one lot of software but two databases. If that is the case I don't know how you would add the second.
My suggestion is that you run two servers on different port numbers. To do this you need, I think, Zope270 and make two instances. For this you get different databases and different zope.conf's (where you set your port numbers) What's common between them is the Zope library files. I.e. lib/python and lib/python/Products. Setting up two instances is easy if you read the INSTALL.txt file and you'll have two different Extension and Products folders to make your differences. The difference is pretty small actually. Why not just install two completely different Zope's. If the second is just for development and testing it can't be that big a save to run multiple instances.
cheers,
Chris
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
-- Peter Bengtsson, http://www.peterbe.com
John Poltorak wrote at 2004-3-10 14:59 +0000:
On Wed, Mar 10, 2004 at 02:45:11PM +0000, Chris Withers wrote:
John Poltorak wrote:
Are there any good references to setting up and using multiple Zope instances?
Much the same as setting up one ;-)
What's the stuff that's worrying you?
I want to have a production Zope and one for testing/learning on the same machine.
I can't visualise how this would work. As I see it you only need one lot of software but two databases. If that is the case I don't know how you would add the second.
Read Evan's "INSTANCE_HOME" HowTo. -- Dieter
On Wed, Mar 10, 2004 at 10:36:58PM +0100, Dieter Maurer wrote:
John Poltorak wrote at 2004-3-10 14:59 +0000:
I want to have a production Zope and one for testing/learning on the same machine.
I can't visualise how this would work. As I see it you only need one lot of software but two databases. If that is the case I don't know how you would add the second.
Read Evan's "INSTANCE_HOME" HowTo.
I couldn't locate such a 'HowTo', but did manage to work out how to setup INSTANCE_HOME and it seems like just the thing I was looking for, although I'm not exactly sure how to change inituser for the second instance.
-- Dieter
-- John
Dieter Maurer wrote:
I can't visualise how this would work. As I see it you only need one lot of software but two databases. If that is the case I don't know how you would add the second.
Read Evan's "INSTANCE_HOME" HowTo.
...just fiddle with zope.conf once you get 2.7.0 up and running... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
On Thu, Mar 11, 2004 at 11:28:50AM +0000, Chris Withers wrote:
Dieter Maurer wrote:
I can't visualise how this would work. As I see it you only need one lot of software but two databases. If that is the case I don't know how you would add the second.
Read Evan's "INSTANCE_HOME" HowTo.
...just fiddle with zope.conf once you get 2.7.0 up and running...
It works fine with 2.6.4 now that I know how INSTANCE_HOME works.
cheers,
Chris
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
-- John
participants (5)
-
Chris Withers -
Dieter Maurer -
John Poltorak -
John Ziniti -
Peter Bengtsson