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():