1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
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
..
tests Clean simple theme 2018-06-19 19:07:20 +00:00
themes Clean simple theme 2018-06-19 19:07:20 +00:00
tools Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
__init__.py Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
cache.py fulfil pep8 standard 2015-08-17 13:34:32 +02:00
contents.py Merge pull request #2288 from charlesfleche/fix-metadata-intrasite-links-squashed 2018-02-09 11:41:30 -08:00
generators.py Merge pull request #2292 from oulenz/article_order 2018-04-06 12:08:29 -07:00
log.py Adding --logs-deduping-min-level CLI option 2017-12-15 14:59:47 +01:00
paginator.py Allow to use page URL in pagination pattern. 2018-02-10 18:26:55 +01:00
readers.py Merge pull request #2311 from gwax/warn_rst_no_document_title 2018-04-06 11:51:22 -07:00
rstdirectives.py Fix warnings originating from bad regexes 2017-03-27 16:09:08 +02:00
server.py Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
settings.py Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
signals.py Add a new signal: page_generator_write_page 2017-10-17 07:38:18 +05:00
urlwrappers.py Add AUTHOR_SUBSTITUTIONS 2016-04-01 23:01:57 +03:00
utils.py Merge pull request #2292 from oulenz/article_order 2018-04-06 12:08:29 -07:00
writers.py Merge pull request #2238 from mosra/feed-urls 2018-03-23 13:36:51 +01:00