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:
@@ -28,7 +28,7 @@ RUNNERS = {
|
|||||||
|
|
||||||
# command which builds the website
|
# command which builds the website
|
||||||
# important: specify {output} as output path of the generator
|
# 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
|
# will be added to env when running build_command
|
||||||
"build_env": {"PELICAN_SITEURL": "//apu:800"}
|
"build_env": {"PELICAN_SITEURL": "//apu:800"}
|
||||||
|
|||||||
@@ -32,8 +32,9 @@ class DeploymentRunner:
|
|||||||
self.target_directory = runner_config["target_directory"]
|
self.target_directory = runner_config["target_directory"]
|
||||||
self.build_repo_path = self.working_directory / BUILD_REPO_DIR.format(
|
self.build_repo_path = self.working_directory / BUILD_REPO_DIR.format(
|
||||||
name=name)
|
name=name)
|
||||||
|
outdir = self.working_directory / OUTPUT_DIR.format(name=name)
|
||||||
self.build_command = runner_config["build_command"].format(
|
self.build_command = runner_config["build_command"].format(
|
||||||
output=OUTPUT_DIR.format(name=name))
|
output=outdir)
|
||||||
self._build_proc_env = dict(os.environ,
|
self._build_proc_env = dict(os.environ,
|
||||||
**runner_config.get("build_env", {}))
|
**runner_config.get("build_env", {}))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user