Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: README.md

Issue 29328527: Issue 3112 - Support use of sitescripts URL handlers from the test server (Closed)
Patch Set: Avoid overzealous exception catching Created Sept. 23, 2015, 1:54 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cms/bin/test_server.py » ('j') | cms/bin/test_server.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
diff --git a/README.md b/README.md
index c7d2cb182d5d3171a553c1f50ef599bf5f7f3289..20c505fe22628c96d10b15757189dc59552bc8a0 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,18 @@ parameter of `runserver.py`. This will start a local web server on port 5000,
e.g. the page the page `pages/example.md` will be accessible under
`http://localhost:5000/en/example`.
+Sometimes it is useful to test the interaction between some dynamic URL handlers
+as defined in the sitescripts repository with an otherwise static site that has
+been generated by our CMS. To do this clone the sitescripts repository and
+configure the required URL handlers in the `multiplexer` section of your
+sitescripts.ini file. Then launch the CMS test server making sure to specify the
+`PYTHONPATH` environment variable:
+
+ PYTHONPATH=/path/to/sitescripts ../cms/runserver.py
+
+_(URL handlers from sitescripts will take precedence over static files and
+pages.)_
+
Note that the test server is inefficient and shouldn't be run in production.
There you should generate static files as explained below.
« no previous file with comments | « no previous file | cms/bin/test_server.py » ('j') | cms/bin/test_server.py » ('J')

Powered by Google App Engine
This is Rietveld