Skip to content

Commit 475c653

Browse files
committed
Bug fixes
1 parent ee89a8f commit 475c653

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/cli/lib/commands/run.js.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ const runFunction = async ({ port, functionId, variables, reload, userId } = {})
216216
const dependencyFile = files.find((filePath) => tool.dependencyFiles.includes(filePath));
217217
if(tool.isCompiled || dependencyFile) {
218218
log(`Rebuilding the function due to file changes ...`);
219-
await dockerBuild(func, variables);
219+
await dockerBuild(func, allVariables);
220220

221221
if(!Queue.isEmpty()) {
222222
Queue.unlock();
223223
return;
224224
}
225225

226-
await dockerStart(func, variables, port);
226+
await dockerStart(func, allVariables, port);
227227
} else {
228228
log('Hot-swapping function.. Files with change are ' + files.join(', '));
229229

@@ -279,7 +279,7 @@ const runFunction = async ({ port, functionId, variables, reload, userId } = {})
279279
file: buildPath
280280
}, ['.']);
281281

282-
await dockerStart(func, variables, port);
282+
await dockerStart(func, allVariables, port);
283283
}
284284
} catch(err) {
285285
console.error(err);
@@ -291,7 +291,7 @@ const runFunction = async ({ port, functionId, variables, reload, userId } = {})
291291
Queue.lock();
292292

293293
log('Building function using Docker ...');
294-
await dockerBuild(func, variables);
294+
await dockerBuild(func, allVariables);
295295

296296
if(!Queue.isEmpty()) {
297297
Queue.unlock();
@@ -300,7 +300,7 @@ const runFunction = async ({ port, functionId, variables, reload, userId } = {})
300300

301301
log('Starting function using Docker ...');
302302
hint('Function automatically restarts when you edit your code.');
303-
await dockerStart(func, variables, port);
303+
await dockerStart(func, allVariables, port);
304304

305305
Queue.unlock();
306306
}

0 commit comments

Comments
 (0)