mirror of
https://github.com/lukasbestle/projectr.git
synced 2026-10-11 23:10:19 +02:00
Update GitLab web hook to run in background
This commit is contained in:
+2
-2
@@ -111,8 +111,8 @@ while(($project = fgets($listPointer)) !== false) {
|
|||||||
// Found the right project
|
// Found the right project
|
||||||
echo "Found project at $project, running deploy script.\n";
|
echo "Found project at $project, running deploy script.\n";
|
||||||
|
|
||||||
// Run deploy script
|
// Run deploy script (in the background, because GitLab doesn't like requests > 10sec by default)
|
||||||
passthru('export PATH=' . escapeshellarg(TOOLKIT_PATH) . ':$PATH; project_deploy ' . escapeshellarg($project) . ' ' . escapeshellarg($commit), $exitCode);
|
passthru('export PATH=' . escapeshellarg(TOOLKIT_PATH) . ':$PATH; project_deploy ' . escapeshellarg($project) . ' ' . escapeshellarg($commit) . ' > /dev/null 2>&1 &', $exitCode);
|
||||||
|
|
||||||
// If it didn't work, add debug statement
|
// If it didn't work, add debug statement
|
||||||
if($exitCode !== 0) echo "Something didn't work.\n";
|
if($exitCode !== 0) echo "Something didn't work.\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user