1
0
Fork 0
mirror of synced 2024-09-29 17:01:37 +13:00

Fix failing executions

This commit is contained in:
Matej Bačo 2023-06-07 10:43:17 +02:00
parent 5f87ef3074
commit 04f3d81ab8
4 changed files with 4 additions and 4 deletions

View file

@ -1416,7 +1416,7 @@ App::post('/v1/functions/:functionId/executions')
path: $path,
method: $method,
headers: $headers,
startCommands: [
commands: [
'sh', '-c',
'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && nohup helpers/start.sh "' . $command . '" &>/dev/null &'
]

View file

@ -276,7 +276,7 @@ class BuildsV1 extends Worker
entrypoint: $deployment->getAttribute('entrypoint'),
destination: APP_STORAGE_BUILDS . "/app-{$project->getId()}",
variables: $vars,
startCommands: [
commands: [
'sh', '-c',
'tar -zxf /tmp/code.tar.gz -C /mnt/code && helpers/build.sh "' . $command . '"'
],

View file

@ -182,7 +182,7 @@ Server::setResource('execute', function () {
path: $path,
method: $method,
headers: $headers,
startCommands: [
commands: [
'sh', '-c',
'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && nohup helpers/start.sh "' . $command . '" &>/dev/null &'
]

View file

@ -715,7 +715,7 @@ services:
hostname: exc1
<<: *x-logging
stop_signal: SIGINT
image: meldiron/executor:0.3.0
image: meldiron/executor:0.3.1
networks:
- appwrite
- runtimes