diff --git a/pelican/tools/templates/fabfile.py.in b/pelican/tools/templates/fabfile.py.in index eac167b9..ca0ab4f0 100644 --- a/pelican/tools/templates/fabfile.py.in +++ b/pelican/tools/templates/fabfile.py.in @@ -6,6 +6,9 @@ import os env.deploy_path = 'output' DEPLOY_PATH = env.deploy_path +# Content path configuration +CONTENT_PATH = 'content/' + # Remote server configuration production = '$ssh_user@$ssh_host:$ssh_port' dest_path = '$ssh_target_dir' @@ -22,14 +25,14 @@ def clean(): local('mkdir {deploy_path}'.format(**env)) def build(): - local('pelican content/ -s pelicanconf.py') + local('pelican ' + CONTENT_PATH + ' -s pelicanconf.py') def rebuild(): clean() build() def regenerate(): - local('pelican content/ -r -s pelicanconf.py') + local('pelican ' + CONTENT_PATH + ' -r -s pelicanconf.py') def serve(): local('cd {deploy_path} && python -m SimpleHTTPServer'.format(**env))