From 0ea23ffd60c0879fd6b505032ec95b504b4978d4 Mon Sep 17 00:00:00 2001 From: Peter Dahlberg Date: Sat, 11 Jun 2016 22:30:22 +0200 Subject: [PATCH] fix build command --- deploy_config.py | 2 +- pelican_deploy/deploy.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy_config.py b/deploy_config.py index 8837a90..a1e7354 100644 --- a/deploy_config.py +++ b/deploy_config.py @@ -28,7 +28,7 @@ RUNNERS = { # command which builds the website # important: specify {output} as output path of the generator - "build_command": 'tox -e pelican --output "{output}"', + "build_command": 'tox -e pelican --recreate -- --output "{output}"', # will be added to env when running build_command "build_env": {"PELICAN_SITEURL": "//apu:800"} diff --git a/pelican_deploy/deploy.py b/pelican_deploy/deploy.py index a069856..43805b3 100644 --- a/pelican_deploy/deploy.py +++ b/pelican_deploy/deploy.py @@ -32,8 +32,9 @@ class DeploymentRunner: self.target_directory = runner_config["target_directory"] self.build_repo_path = self.working_directory / BUILD_REPO_DIR.format( name=name) + outdir = self.working_directory / OUTPUT_DIR.format(name=name) self.build_command = runner_config["build_command"].format( - output=OUTPUT_DIR.format(name=name)) + output=outdir) self._build_proc_env = dict(os.environ, **runner_config.get("build_env", {}))