1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

fix build command

This commit is contained in:
2016-06-11 22:30:22 +02:00
parent e1f4dad2f0
commit 0ea23ffd60
2 changed files with 3 additions and 2 deletions

View File

@@ -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"}

View File

@@ -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", {}))