Thursday, April 9, 2009

Update: A separate config file for a two-instance setup

You may want to use the file below to create a two-instances setup from a very basic config file. In this case, my config extends dvl.cfg, which is a single-instance, non-cluster setup. It's important that this buildout have an [instance] section. (Almost all simple buildouts, notably those created by paster, do.)

Just fire up your debugging instance: ./bin/instance1 debug. Change something, using only Python code, save it by doing import transaction; transaction.commit() and watch your changes take effect in your live environment.