From 14cdb47cb7884cdd801d78cb49b999ead4a60043 Mon Sep 17 00:00:00 2001 From: Wei Shi Date: Sat, 31 May 2014 16:13:21 +0800 Subject: [PATCH] fix preview bug --- pelican/tools/templates/fabfile.py.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pelican/tools/templates/fabfile.py.in b/pelican/tools/templates/fabfile.py.in index af5e5ae8..e4c3f362 100644 --- a/pelican/tools/templates/fabfile.py.in +++ b/pelican/tools/templates/fabfile.py.in @@ -44,7 +44,7 @@ def clean(): local('mkdir {deploy_path}'.format(**env)) -@task(alias='preview') +@task @fab_root def build(): '''Generate the static output''' @@ -95,6 +95,12 @@ def reserve(): serve() +@task +@fab_root +def preview(): + local('pelican -s publishconf.py') + + @task @fab_root def cf_upload():