Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 # Running the test server # | 1 # Running the test server # |
2 | 2 |
3 The test server will convert your content directory on the fly, your changes | 3 The test server will convert your content directory on the fly, your changes |
4 will become visible immediately. To run it you need: | 4 will become visible immediately. To run it you need: |
5 | 5 |
6 * Python 2.7 | 6 * Python 2.7 |
7 * [Jinja2](http://jinja.pocoo.org/) and | 7 * [Jinja2](http://jinja.pocoo.org/) and |
8 [Markdown](https://pypi.python.org/pypi/Markdown) modules (can be installed by | 8 [Markdown](https://pypi.python.org/pypi/Markdown) modules (can be installed by |
9 running `easy_install Jinja2 Markdown` from the command line) | 9 running `easy_install Jinja2 Markdown` from the command line) |
10 * A current copy of the | 10 * A current copy of the |
11 [cms repository](https://github.com/adblockplus/cms/) (can be | 11 [cms repository](https://github.com/adblockplus/cms/) (can be |
12 [downloaded as ZIP file](https://github.com/adblockplus/cms/archive/master.zip ) | 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`) | 13 or cloned via `git clone https://github.com/adblockplus/cms.git`) |
14 | 14 |
15 Optionally, the [Werkzeug](http://werkzeug.pocoo.org/) module can be installed | 15 Optionally, the [Werkzeug](http://werkzeug.pocoo.org/) module can be installed |
16 as well, this will provide some developer features. | 16 as well, this will provide some developer features. |
17 | 17 |
18 Run the `runserver.py` script from your content directory, e.g.: | 18 Run the `runserver.py` script from your content directory, e.g.: |
19 | 19 |
20 python ../cms/runserver.py | 20 python ../cms/runserver.py |
21 | 21 |
22 Alternatively, the content directory could also be specified as command line | 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, | 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 | 24 e.g. the page the page `pages/example.md` will be accessible under |
25 `http://localhost:5000/en/example`. | 25 `http://localhost:5000/en/example`. |
26 | 26 |
27 Note that the test server is inefficient and shouldn't be run in production. | 27 Note that the test server is inefficient and shouldn't be run in production. |
28 There you should generate static files as explained below. | 28 There you should generate static files as explained in the next guide, |
Vasily Kuznetsov
2017/12/12 15:35:25
I think it would be better to add a link to `gener
ire
2017/12/13 11:10:24
Good idea. Done.
| |
29 [Generating Static Files](generate-static-files.md). | |
LEFT | RIGHT |