Skip to content

Commit 1137dc7

Browse files
author
Andrew Welch
committed
Merge branch 'release/2.6.4' into devmode-vite
2 parents 50feae1 + 28cb75d commit 1137dc7

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# nystudio107/devmode Change Log
22

3+
## 2.6.4 - 2022.05.02
4+
### Fixed
5+
* Clean up initial check for `composer.lock` or `vendor/autoload.php` to ensure the first-time install is done
6+
37
## 2.6.3 - 2022.04.28
48
### Changed
59
* Updated to Craft CMS `4.0.0-RC1` & latest Composer deps

docker-config/php-prod-craft/composer_install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# Ensure permissions on directories Craft needs to write to
1414
chown -R www-data:www-data /var/www/project/cms/storage
1515
chown -R www-data:www-data /var/www/project/cms/web/cpresources
16-
# Check for `composer.lock` & `vendor/`
16+
# Check for `composer.lock` & `vendor/autoload.php`
1717
cd /var/www/project/cms
18-
if [ ! -f "composer.lock" ] || [ ! -d "vendor" ]; then
18+
if [ ! -f "composer.lock" ] || [ ! -f "vendor/autoload.php" ]; then
1919
su-exec www-data composer install --verbose --no-progress --no-scripts --optimize-autoloader --no-interaction
2020
# Wait until the Postgres db container responds
2121
echo "### Waiting for Postgres database"

docker-config/php-prod-craft/run_queue.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ until eval "PGPASSWORD=$DB_PASSWORD psql -h postgres -U $DB_USER $DB_DATABASE -c
1919
do
2020
sleep 1
2121
done
22-
# Wait until the `composer install` is done by looking for the `vendor/autoload.php` file
22+
# Wait until the `composer install` is done by looking for the `vendor/autoload.php` and `composer.lock` files
2323
echo "### Waiting for vendor/autoload.php"
24-
while [ ! -f vendor/autoload.php ] || [ ! -f composer.lock ]
24+
while [ ! -f "vendor/autoload.php" ] || [ ! -f "composer.lock" ]
2525
do
2626
sleep 1
2727
done

0 commit comments

Comments
 (0)