OLD | NEW |
(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). |
OLD | NEW |