Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/client_updater_server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-04-19 12:24:30 +0300
committerGitHub <noreply@github.com>2022-04-19 12:24:30 +0300
commitcb8975471eed163c580c41bd5881fd754af9b8d7 (patch)
treec0e92008f4af38051045970b3d939aa9557e4ec5
parent8cb7b89994b27e80b54b830007f36ccb639662e5 (diff)
parentd573e394f20b634e6d092ad4c93e9eba45958165 (diff)
Merge pull request #79 from nextcloud/fix/noid/autoload
Fix Config class not found
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 02d3465..207a8ce 100644
--- a/index.php
+++ b/index.php
@@ -21,6 +21,7 @@
declare(strict_types=1);
+require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/src/Response.php';
// Set Content-Type to XML
@@ -71,7 +72,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' &&
if (isset($data['ref']) && $data['ref'] === 'refs/heads/' . $branch) {
$escapedDir = escapeshellarg(__DIR__);
- exec("cd $escapedDir && git pull");
+ exec("cd $escapedDir && git pull && composer update --no-dev");
echo "Deployed";
}