Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
0aefe5c7
Commit
0aefe5c7
authored
Dec 04, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added serve.sh support
parent
971a1861
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
doc/INSTALL.txt
doc/INSTALL.txt
+5
-5
wo_pcgi.py
wo_pcgi.py
+11
-1
No files found.
doc/INSTALL.txt
View file @
0aefe5c7
...
...
@@ -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:
...
...
wo_pcgi.py
View file @
0aefe5c7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment