Skip to content

Commit

Permalink
Merge branch 'release/2.5.7' into craft-vite
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Apr 8, 2022
2 parents 2ec4939 + 0b6d9f6 commit 8021aa8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# nystudio107/craft Change Log

## 2.5.7 - 2022.04.08
### Changed
* Run migrations first via `composer.json` scripts, because Craft won't apply Project Config if there are pending migrations
* Added `tty: true` back in now that the issue has been fixed in the Docker Compose API `2.4.1` ([#9348](https://github.com/docker/compose/pull/9348))
* Wait for both `vendor/autoload.php` as we as `composer.lock` before starting up the queue listener

## 2.5.6 - 2022.03.30
### Changed
* Fix `WORKDIR` in `php-prod-craft` container so `make craft` etc. commands work as expected
Expand Down
4 changes: 2 additions & 2 deletions cms/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"post-craft-update": [
"Composer\\Config::disableProcessTimeout",
"@php craft install/check && php craft clear-caches/all --interactive=0 || exit 0",
"@php craft install/check && php craft project-config/apply --interactive=0 || exit 0",
"@php craft install/check && php craft migrate/all --interactive=0 || exit 0"
"@php craft install/check && php craft migrate/all --interactive=0 || exit 0",
"@php craft install/check && php craft project-config/apply --interactive=0 || exit 0"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
expose:
- "9000"
init: true
tty: true
volumes: &php-volumes
- cpresources:/var/www/project/cms/web/cpresources:delegated
- storage:/var/www/project/cms/storage:delegated
Expand All @@ -48,6 +49,7 @@ services:
expose:
- "9000"
init: true
tty: true
volumes:
*php-volumes
# queue - runs queue jobs via php craft queue/listen
Expand All @@ -60,6 +62,7 @@ services:
env_file:
*env
init: true
tty: true
volumes:
*php-volumes
# mariadb - database
Expand Down Expand Up @@ -98,6 +101,7 @@ services:
init: true
ports:
- "3000:3000"
tty: true
volumes:
- ./buildchain:/var/www/project/buildchain:cached
- ./buildchain/node_modules:/var/www/project/buildchain/node_modules:delegated
Expand Down
2 changes: 1 addition & 1 deletion docker-config/php-prod-craft/run_queue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ do
done
# Wait until the `composer install` is done by looking for the `vendor/autoload.php` file
echo "### Waiting for vendor/autoload.php"
while [ ! -f vendor/autoload.php ]
while [ ! -f vendor/autoload.php ] || [ ! -f composer.lock ]
do
sleep 1
done
Expand Down

0 comments on commit 8021aa8

Please sign in to comment.