Skip to content

Commit

Permalink
Update mkzopesite skeleton.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hannosch committed Jul 21, 2016
1 parent d6f77de commit 11f7d91
Show file tree
Hide file tree
Showing 10 changed files with 737 additions and 700 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ develop/
develop-eggs/
dist/
eggs/
etc/
include/
lib/
log/
parts/
var/
docs/_build/
docs/.build/
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ global-exclude *.pyo
global-exclude *.so

include *.py
include .travis.yml
include buildout.cfg
include sources.cfg
include versions-prod.cfg
include versions.cfg
1 change: 0 additions & 1 deletion src/Zope2/Startup/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def _setconfig(configfile=None):
accept a configfile argument (string path) in order to specify
where the configuration file exists. """
from Zope2.Startup import options, handlers
from App import config
opts = options.ZopeOptions()
if configfile:
opts.configfile = configfile
Expand Down
2 changes: 1 addition & 1 deletion src/Zope2/Startup/tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_load_config_template(self):
cfg = getConfiguration()
import Zope2.utilities
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)
text = f.read()
f.close()
Expand Down
2 changes: 2 additions & 0 deletions src/Zope2/Startup/zopectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ def do_debug(self, arg):
def do_foreground(self, arg):
program = self.options.program
local_additions = []
if not program.count('-C'):
local_additions += ['-C', self.options.configfile]
if not program.count('-X'):
local_additions += ['-X']
if not program.count('debug-mode=on'):
Expand Down
7 changes: 0 additions & 7 deletions src/Zope2/utilities/skel/README.txt

This file was deleted.

34 changes: 34 additions & 0 deletions src/Zope2/utilities/skel/etc/base.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
%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>
Loading

0 comments on commit 11f7d91

Please sign in to comment.