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

Side by Side Diff: docs/usage/test-server.md

Issue 29628724: Issue 5521 - Restructure CMS documentation to make it easier to use and extend (Closed) Base URL: https://hg.adblockplus.org/cms
Patch Set: Add initial API docs Created Dec. 13, 2017, 11:08 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« docs/content/includes.md ('K') | « docs/usage/syncing-translations.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Running the test server #
2
3 The test server will convert your content directory on the fly, your changes
4 will become visible immediately. To run it you need:
5
6 * Python 2.7
7 * [Jinja2](http://jinja.pocoo.org/) and
8 [Markdown](https://pypi.python.org/pypi/Markdown) modules (can be installed by
9 running `easy_install Jinja2 Markdown` from the command line)
10 * A current copy of the
11 [cms repository](https://github.com/adblockplus/cms/) (can be
12 [downloaded as ZIP file](https://github.com/adblockplus/cms/archive/master.zip )
13 or cloned via `git clone https://github.com/adblockplus/cms.git`)
14
15 Optionally, the [Werkzeug](http://werkzeug.pocoo.org/) module can be installed
16 as well, this will provide some developer features.
17
18 Run the `runserver.py` script from your content directory, e.g.:
19
20 python ../cms/runserver.py
21
22 Alternatively, the content directory could also be specified as command line
23 parameter of `runserver.py`. This will start a local web server on port 5000,
24 e.g. the page the page `pages/example.md` will be accessible under
25 `http://localhost:5000/en/example`.
26
27 Note that the test server is inefficient and shouldn't be run in production.
28 There you should generate static files as explained in the next guide,
29 [Generating Static Files](generate-static-files.md).
OLDNEW
« docs/content/includes.md ('K') | « docs/usage/syncing-translations.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld