mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-24 14:06:27 +02:00
RUNTIME_SET env choice in start-dev, websockets
This commit is contained in:
parent
6d1156188c
commit
2bdd4768cd
3 changed files with 8 additions and 3 deletions
|
@ -281,7 +281,7 @@ class Job {
|
|||
if (this.runtime.compiled) {
|
||||
eventBus.emit('stage', 'compile');
|
||||
const { error, code, signal } = await this.safe_call(
|
||||
path.join(this.runtime.pkgdir, 'compile'),
|
||||
this.runtime.compile,
|
||||
code_files.map(x => x.name),
|
||||
this.timeouts.compile,
|
||||
this.memory_limits.compile,
|
||||
|
@ -294,7 +294,7 @@ class Job {
|
|||
this.logger.debug('Running');
|
||||
eventBus.emit('stage', 'run');
|
||||
const { error, code, signal } = await this.safe_call(
|
||||
path.join(this.runtime.pkgdir, 'run'),
|
||||
this.runtime.run,
|
||||
[code_files[0].name, ...this.args],
|
||||
this.timeouts.run,
|
||||
this.memory_limits.run,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue