mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-18 01:20:31 +00:00
refactor(deployment): improve environment variable handling in ApplicationDeploymentJob
This commit is contained in:
@@ -1332,8 +1332,8 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
|
||||
$variables = data_get($parsed, 'variables', []);
|
||||
|
||||
$envCommands = [];
|
||||
foreach ($variables as $key => $value) {
|
||||
$envCommands[] = "echo \"$key=\${$key}\" >> /app/.env";
|
||||
foreach (array_keys($variables) as $key) {
|
||||
$envCommands[] = "printf '%s=%s\\n' ".escapeshellarg($key)." \"\${$key}\" >> /app/.env";
|
||||
}
|
||||
|
||||
if (! empty($envCommands)) {
|
||||
|
||||
Reference in New Issue
Block a user