@@ -216,14 +216,14 @@ const runFunction = async ({ port, functionId, variables, reload, userId } = {})
216
216
const dependencyFile = files.find((filePath) => tool.dependencyFiles.includes(filePath));
217
217
if(tool.isCompiled || dependencyFile) {
218
218
log(`Rebuilding the function due to file changes ...`);
219
- await dockerBuild(func, variables );
219
+ await dockerBuild(func, allVariables );
220
220
221
221
if(!Queue.isEmpty()) {
222
222
Queue.unlock();
223
223
return;
224
224
}
225
225
226
- await dockerStart(func, variables , port);
226
+ await dockerStart(func, allVariables , port);
227
227
} else {
228
228
log('Hot-swapping function.. Files with change are ' + files.join(', '));
229
229
@@ -279,7 +279,7 @@ const runFunction = async ({ port, functionId, variables, reload, userId } = {})
279
279
file: buildPath
280
280
}, ['.']);
281
281
282
- await dockerStart(func, variables , port);
282
+ await dockerStart(func, allVariables , port);
283
283
}
284
284
} catch(err) {
285
285
console.error(err);
@@ -291,7 +291,7 @@ const runFunction = async ({ port, functionId, variables, reload, userId } = {})
291
291
Queue.lock();
292
292
293
293
log('Building function using Docker ...');
294
- await dockerBuild(func, variables );
294
+ await dockerBuild(func, allVariables );
295
295
296
296
if(!Queue.isEmpty()) {
297
297
Queue.unlock();
@@ -300,7 +300,7 @@ const runFunction = async ({ port, functionId, variables, reload, userId } = {})
300
300
301
301
log('Starting function using Docker ...');
302
302
hint('Function automatically restarts when you edit your code.');
303
- await dockerStart(func, variables , port);
303
+ await dockerStart(func, allVariables , port);
304
304
305
305
Queue.unlock();
306
306
}
0 commit comments