mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Adding CONTENT_PATH variable
This commit is contained in:
parent
3b5f07fe15
commit
5d07d87f86
1 changed files with 5 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue