Commit 0aefe5c7 authored by 's avatar

Added serve.sh support

parent 971a1861
......@@ -70,17 +70,17 @@ Setting permissions ons on the var directory.
Note: Zope normally runs as nobody, so full read and write permissions
on the var directory is normally needed.
Using Zope with ZopeHTTPServer:
ZopeHTTPServer is a simple web server written in Python and it
allows you to run Zope without using PCGI and another web server.
To start Zope using ZopeHTTPServer cd to the Zope directory and
issue this command:
The build script automatically creates a shell script named serve.sh
which will run the built-in server. To start Zope using ZopeHTTPServer
cd to the Zope directory and issue the command:
python serve.py
serve.sh
Note: you may wish to run ZopeHTTPServer in the background and redirect
its output to a logfile or to /dev/null
Using Zope with PCGI:
......
......@@ -5,7 +5,7 @@ This must be run from the top-level directory of the installation.
"""
import os
import sys, os
home=os.getcwd()
print
print '-'*78
......@@ -37,6 +37,16 @@ if not os.path.exists(ac_path):
acfile.write('superuser:123\n')
acfile.close()
os.system('chmod 744 access')
sh_path=os.path.join(home, 'serve.sh')
if not os.path.exists(sh_path):
print 'creating serve.sh'
s='#!/bin/sh\n%s serve.py >var/serve.log 2>var/serve.log &\n'
shfile=open(sh_path, 'w')
shfile.write(s % sys.executable)
shfile.close()
os.system('chmod 775 serve.sh')
print
print '-'*78
......
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