winter:version hangs and floods logs when the database is not initialized
Opened this issue · 1 comments
Winter CMS Build
1.2
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
Winter.Blocks, Winter.DriverAWS, Winter.DriverMailgun, Winter.Redirect, Winter.SEO, Winter.Sitemap, Winter.Translate, Winter.Pages
Issue description
Have been trying to deploy a Winter 1.2.6 website from dev to prod, but has been failing. I noticed the composer.json includes the post-update-cmd @php artisan winter:version
. However, since the DB exists but is empty (no tables), the command just hangs and floods the logs with 23k line stack traces.
I can't start by doing a php artisan migrate
since I can have relations to some Laravel package models which would not work if Laravel isn't installed, which means I have to start with composer install
which, well, hangs and floods logs because of winter:version.
Steps to replicate
- Git clone an already-configured website in WinterCMS 1.2.6
- Configure your .env with valid db credentials
- Run
composer install
Workaround
Removing the winter:version command from the post-update-cmd section of the composer.json works.
@nmiyazaki-chapleau until we can investigate, you can always add the --no-scripts
flag to composer install
to skip the scripts.