1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tools
Johannes 'josch' Schauer a5edbf8546 Remove develop_server.sh in favour of pelican serving static files itself
Competing static site generators integrate the functionality of regenerating
content and serving it into their main executable. In pelican this
functionality used to be in an external script `develop_server.sh` which
resides in the blog base directory. This has the disadvantage that changes in
pelican can break the `develop_server.sh` scripts which will not automatically
be upgraded together with pelican by package managers. Thus, pelican should
integrate this functionality into its main executable.

To this end, this commit removes `develop_server.sh` and adds three command
line options to the pelican executable:

 * `-l/--listen` starts the HTTP server (`-s/--serve` was already taken)
 * `-p/--port` specifies the port to listen at
 * `-b/--bind` specifies the IP to bind to

`--listen` and `--autoreload` can be used together to achieve the same
effect that other static site generators offer: Serve files via HTTP
while at the same time auto-generating the content.

Since the `develop_server.sh` script was removed, pelican-quickstart looses the
`develop` option.

Since the `develop_server.sh` script was removed, the Makefile looses the
`stopserver` target and the `devserver` target is replaced by running `pelican
-l` in the foreground.

Since pelican now offers the `--listen` option, the fabfile uses that instead
of starting the socketserver itself.
2018-06-22 19:22:38 +02:00
..
templates Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
__init__.py move tools in pelican.tools and add the pelican.tools package to setup.py 2012-03-16 18:53:08 +00:00
pelican_import.py Merge pull request #2251 from fgallaire/content 2017-11-12 08:10:23 -08:00
pelican_quickstart.py Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
pelican_themes.py PyCodeStyle fixes to keep Flake8 happy 2017-10-26 13:53:32 -07:00