mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Ensured install and update script change to the project dir
This commit is contained in:
@@ -4,5 +4,9 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Shlinkio\Shlink;
|
namespace Shlinkio\Shlink;
|
||||||
|
|
||||||
|
use function chdir;
|
||||||
|
use function dirname;
|
||||||
|
|
||||||
|
chdir(dirname(__DIR__));
|
||||||
$run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php';
|
$run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php';
|
||||||
$run(false);
|
$run(false);
|
||||||
|
|||||||
@@ -4,5 +4,9 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Shlinkio\Shlink;
|
namespace Shlinkio\Shlink;
|
||||||
|
|
||||||
|
use function chdir;
|
||||||
|
use function dirname;
|
||||||
|
|
||||||
|
chdir(dirname(__DIR__));
|
||||||
$run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php';
|
$run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php';
|
||||||
$run(true);
|
$run(true);
|
||||||
|
|||||||
2
build.sh
2
build.sh
@@ -41,7 +41,7 @@ cd "${builtcontent}"
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
echo "Installing dependencies with $composerBin..."
|
echo "Installing dependencies with $composerBin..."
|
||||||
${composerBin} self-update
|
${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
|
# Delete development files
|
||||||
echo 'Deleting dev files...'
|
echo 'Deleting dev files...'
|
||||||
|
|||||||
Reference in New Issue
Block a user