mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: change for in to for of to access to real value instead of the index
This commit is contained in:
@@ -22,7 +22,7 @@ export const buildHeroku = async (
|
|||||||
"heroku/builder:22",
|
"heroku/builder:22",
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const env in envVariables) {
|
for (const env of envVariables) {
|
||||||
args.push("--env", env);
|
args.push("--env", env);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,10 @@ export const buildNixpacks = async (
|
|||||||
try {
|
try {
|
||||||
const args = ["build", buildAppDirectory, "--name", appName];
|
const args = ["build", buildAppDirectory, "--name", appName];
|
||||||
|
|
||||||
for (const env in envVariables) {
|
for (const env of envVariables) {
|
||||||
args.push("--env", env);
|
args.push("--env", env);
|
||||||
}
|
}
|
||||||
|
|
||||||
await spawnAsync("nixpacks", args, (data) => {
|
await spawnAsync("nixpacks", args, (data) => {
|
||||||
if (writeStream.writable) {
|
if (writeStream.writable) {
|
||||||
writeStream.write(data);
|
writeStream.write(data);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export const buildPaketo = async (
|
|||||||
"paketobuildpacks/builder-jammy-full",
|
"paketobuildpacks/builder-jammy-full",
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const env in envVariables) {
|
for (const env of envVariables) {
|
||||||
args.push("--env", env);
|
args.push("--env", env);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user