Browse Source

Remove livereload stuff (not working)

pull/2/head
Luke Murphy 5 years ago
parent
commit
de34ed1a50
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 9
      README.md
  2. 9
      tasks.py

9
README.md

@ -51,19 +51,10 @@ Then the site is available at the following URL:
While working on the site, you can run the following:
```bash
$ invoke livereload
```
And then the Pelican development server will automatically reload
when you make changes. It is also possible to use:
```bash
$ pelican --autoreload --listen --relative-urls
```
However, this will not automatically refresh your browser page.
### Writing drafts
Use `Status: draft` in the article metadata. When the site is generated, the

9
tasks.py

@ -5,7 +5,6 @@ import shutil
import sys
from invoke import task
from livereload import Server
from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer
CONFIG = {
@ -76,11 +75,3 @@ def publish(c):
# TODO: use generation and rsync here for publishing
# also update README.md "Deploying the site" instructions
c.run('git push origin master')
@task
def livereload(c):
"""Get automatic live reloading when hacking on the site"""
server = Server()
server.watch(CONFIG['content_path'], lambda: build(c))
server.serve(root=CONFIG['deploy_path'], port=CONFIG['port'])

Loading…
Cancel
Save