diff --git a/bin/install b/bin/install index e3502509..5918cac0 100755 --- a/bin/install +++ b/bin/install @@ -4,5 +4,9 @@ declare(strict_types=1); namespace Shlinkio\Shlink; +use function chdir; +use function dirname; + +chdir(dirname(__DIR__)); $run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php'; $run(false); diff --git a/bin/update b/bin/update index 3be9bf17..5dd32e72 100755 --- a/bin/update +++ b/bin/update @@ -4,5 +4,9 @@ declare(strict_types=1); namespace Shlinkio\Shlink; +use function chdir; +use function dirname; + +chdir(dirname(__DIR__)); $run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php'; $run(true); diff --git a/build.sh b/build.sh index 99c82087..ee7839c9 100755 --- a/build.sh +++ b/build.sh @@ -41,7 +41,7 @@ cd "${builtcontent}" # Install dependencies echo "Installing dependencies with $composerBin..." ${composerBin} self-update -${composerBin} install --no-dev --optimize-autoloader --no-progress --no-interaction +${composerBin} install --no-dev --optimize-autoloader --apcu-autoloader --no-progress --no-interaction # Delete development files echo 'Deleting dev files...'