Adding CONTENT_PATH variable

This commit is contained in:
Julien Iguchi-Cartigny 2013-10-14 12:54:58 +02:00
commit 5d07d87f86

View file

@ -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))