how to debug deployments
I'm trying to deploy a Laravel application and it worked fine using the new Railpack, which is better than Nixpacks as it was truly zero configuration for Laravel, but it looks like it lacks support for MySQL database connections, not having pdo_mysql installed in container.
So I tried adding
RAILPACK_PHP_EXTENSIONS=pdo_mysql
to my environment variables and it started breaking the deployment, giving error in build time when it should read an unchanged environment variable but not finding it (next message)
I believe that doing this messed up something with the generated .env
file in build time, but there is no way to know it without having logs of how .env was configured at the moment1 Reply
this error happens while
BROADCAST_DRIVER='log'
exists in my environment, after adding RAILPACK_PHP_EXTENSIONS=pdo_mysql