Skip to content

Commit

Permalink
Merge branch 'release/2.6.4' into devmode-vite
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed May 2, 2022
2 parents 50feae1 + 28cb75d commit 1137dc7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# nystudio107/devmode Change Log

## 2.6.4 - 2022.05.02
### Fixed
* Clean up initial check for `composer.lock` or `vendor/autoload.php` to ensure the first-time install is done

## 2.6.3 - 2022.04.28
### Changed
* Updated to Craft CMS `4.0.0-RC1` & latest Composer deps
Expand Down
4 changes: 2 additions & 2 deletions docker-config/php-prod-craft/composer_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
# Ensure permissions on directories Craft needs to write to
chown -R www-data:www-data /var/www/project/cms/storage
chown -R www-data:www-data /var/www/project/cms/web/cpresources
# Check for `composer.lock` & `vendor/`
# Check for `composer.lock` & `vendor/autoload.php`
cd /var/www/project/cms
if [ ! -f "composer.lock" ] || [ ! -d "vendor" ]; then
if [ ! -f "composer.lock" ] || [ ! -f "vendor/autoload.php" ]; then
su-exec www-data composer install --verbose --no-progress --no-scripts --optimize-autoloader --no-interaction
# Wait until the Postgres db container responds
echo "### Waiting for Postgres database"
Expand Down
4 changes: 2 additions & 2 deletions docker-config/php-prod-craft/run_queue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ until eval "PGPASSWORD=$DB_PASSWORD psql -h postgres -U $DB_USER $DB_DATABASE -c
do
sleep 1
done
# Wait until the `composer install` is done by looking for the `vendor/autoload.php` file
# Wait until the `composer install` is done by looking for the `vendor/autoload.php` and `composer.lock` files
echo "### Waiting for vendor/autoload.php"
while [ ! -f vendor/autoload.php ] || [ ! -f composer.lock ]
while [ ! -f "vendor/autoload.php" ] || [ ! -f "composer.lock" ]
do
sleep 1
done
Expand Down

0 comments on commit 1137dc7

Please sign in to comment.