mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-06 02:23:03 +00:00
fix(deployment): properly escape shell arguments in railpack prepare command
This commit is contained in:
@@ -2454,13 +2454,13 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
|
||||
$prepare_command .= " {$this->env_railpack_args}";
|
||||
}
|
||||
if ($this->application->build_command) {
|
||||
$prepare_command .= " --build-cmd \"{$this->application->build_command}\"";
|
||||
$prepare_command .= ' --build-cmd '.escapeShellValue($this->application->build_command);
|
||||
}
|
||||
if ($this->application->start_command) {
|
||||
$prepare_command .= " --start-cmd \"{$this->application->start_command}\"";
|
||||
$prepare_command .= ' --start-cmd '.escapeShellValue($this->application->start_command);
|
||||
}
|
||||
if ($this->application->install_command) {
|
||||
$prepare_command .= " --env RAILPACK_INSTALL_CMD=\"{$this->application->install_command}\"";
|
||||
$prepare_command .= ' --env '.escapeShellValue("RAILPACK_INSTALL_CMD={$this->application->install_command}");
|
||||
}
|
||||
|
||||
$prepare_command .= " --plan-out /artifacts/railpack-plan.json {$this->workdir}";
|
||||
|
||||
Reference in New Issue
Block a user