Commit 11f7d91c authored by Hanno Schlichting's avatar Hanno Schlichting

Update mkzopesite skeleton.

Provide both a ZServer based etc/zope.conf and 'no HTTP server'
etc/wsgi.conf, both based on a common etc/base.conf.

Also move the full configuration options into an etc/example.conf
parent d6f77dea
...@@ -8,8 +8,11 @@ develop/ ...@@ -8,8 +8,11 @@ develop/
develop-eggs/ develop-eggs/
dist/ dist/
eggs/ eggs/
etc/
include/ include/
lib/ lib/
log/
parts/ parts/
var/
docs/_build/ docs/_build/
docs/.build/ docs/.build/
...@@ -15,7 +15,7 @@ global-exclude *.pyo ...@@ -15,7 +15,7 @@ global-exclude *.pyo
global-exclude *.so global-exclude *.so
include *.py include *.py
include .travis.yml
include buildout.cfg include buildout.cfg
include sources.cfg include sources.cfg
include versions-prod.cfg
include versions.cfg include versions.cfg
...@@ -46,7 +46,6 @@ def _setconfig(configfile=None): ...@@ -46,7 +46,6 @@ def _setconfig(configfile=None):
accept a configfile argument (string path) in order to specify accept a configfile argument (string path) in order to specify
where the configuration file exists. """ where the configuration file exists. """
from Zope2.Startup import options, handlers from Zope2.Startup import options, handlers
from App import config
opts = options.ZopeOptions() opts = options.ZopeOptions()
if configfile: if configfile:
opts.configfile = configfile opts.configfile = configfile
......
...@@ -72,7 +72,7 @@ class StartupTestCase(unittest.TestCase): ...@@ -72,7 +72,7 @@ class StartupTestCase(unittest.TestCase):
cfg = getConfiguration() cfg = getConfiguration()
import Zope2.utilities import Zope2.utilities
base = os.path.dirname(Zope2.utilities.__file__) base = os.path.dirname(Zope2.utilities.__file__)
fn = os.path.join(base, "skel", "etc", "zope.conf.in") fn = os.path.join(base, "skel", "etc", "base.conf.in")
f = open(fn) f = open(fn)
text = f.read() text = f.read()
f.close() f.close()
......
...@@ -218,6 +218,8 @@ class ZopeCmd(ZDCmd): ...@@ -218,6 +218,8 @@ class ZopeCmd(ZDCmd):
def do_foreground(self, arg): def do_foreground(self, arg):
program = self.options.program program = self.options.program
local_additions = [] local_additions = []
if not program.count('-C'):
local_additions += ['-C', self.options.configfile]
if not program.count('-X'): if not program.count('-X'):
local_additions += ['-X'] local_additions += ['-X']
if not program.count('debug-mode=on'): if not program.count('debug-mode=on'):
......
This directory contains an "instance home" for the Zope application
server. It contains the following directories:
bin/ Scripts used to control the Zope instance
etc/ Configuration files
log/ Log files
var/ Run-time data files, including the object database
%define INSTANCE <<INSTANCE_HOME>>
instancehome $INSTANCE
<eventlog>
level info
<logfile>
path $INSTANCE/log/event.log
level info
</logfile>
</eventlog>
<logger access>
level WARN
<logfile>
path $INSTANCE/log/Z2.log
format %(message)s
</logfile>
</logger>
<zodb_db main>
<filestorage>
path $INSTANCE/var/Data.fs
</filestorage>
mount-point /
</zodb_db>
<zodb_db temporary>
<temporarystorage>
name temporary storage for sessioning
</temporarystorage>
mount-point /temp_folder
container-class Products.TemporaryFolder.TemporaryContainer
</zodb_db>
This diff is collapsed.
%include <<INSTANCE_HOME>>/etc/base.conf
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment