diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8e3c8daf8..3e7636cd7 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -43,10 +43,7 @@ jobs: with: php-version: '8.1' - - name: Update composer.lock file - run: composer update --no-install - - - name: Install Composer dependencies + - name: Install Composer dependencies 🪚 run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Cleanup diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aec956ad7..0b856179c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,6 @@ jobs: with: php-version: '8.1' - - name: Update composer.lock file - run: composer update --no-install - - name: Install Composer dependencies 🪚 run: composer install --no-progress --prefer-dist --optimize-autoloader @@ -59,9 +56,6 @@ jobs: with: php-version: '8.1' - - name: Update composer.lock file - run: composer update --no-install - - name: Install Composer dependencies 🪚 run: composer install --no-progress --prefer-dist --optimize-autoloader diff --git a/README.md b/README.md index 79a3b3563..8d28859d9 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ and go from there. The documentation will be translated to English in the near f * Apache / nginx ([example config](install/nginx.conf)) / caddy ([example config](install/Caddyfile)) * MySQL 5.5.3 or above (including MySQL 8.0+) / MariaDB 10.0 or above / Percona * PHP: 8.1 / 8.2 / 8.3 / 8.4 -* PHP Extensions: mbstring, gd, bcmath, intl, tidy (optional), xml, xmlwriter +* PHP Extensions: mysqli, mbstring, gd, bcmath, intl, tidy (optional), xml, xmlwriter * Crontab (Recommended) ## 💾 Installation @@ -101,7 +101,7 @@ Check out our [autoinstall](https://github.com/torrentpier/autoinstall) reposito ``` 4. After, run this command in the project directory to install Composer dependencies ```shell - composer install --optimize-autoloader --no-dev + composer install --prefer-dist --optimize-autoloader ``` 5. Create a database and import the dump located at `install/sql/mysql.sql` 6. Edit database configuration settings in the environment (`.env.example`), after, rename to `.env` diff --git a/install.php b/install.php index 5db769511..ef3e0bce8 100644 --- a/install.php +++ b/install.php @@ -145,9 +145,7 @@ if (!is_file(BB_ROOT . 'vendor/autoload.php')) { // Installing dependencies if (is_file(BB_ROOT . 'composer.phar')) { out('- Installing dependencies...', 'info'); - runProcess('php ' . BB_ROOT . 'composer.phar update --no-install'); - sleep(3); - runProcess('php ' . BB_ROOT . 'composer.phar install --no-interaction --no-ansi'); + runProcess('php ' . BB_ROOT . 'composer.phar install --no-interaction --no-ansi --prefer-dist --optimize-autoloader'); define('COMPOSER_COMPLETED', true); } else { out('- composer.phar not found. Please, download it (composer.phar) manually', 'error');