Can I install `mysql-client` for a Laravel app without using a custom Dockerfile?
Pretty standard Laravel app without a Dockerfile, and I updated the build command to include
php artisan db:migrate --force
. Here's what I see in the build log:
I've also updated my NIXPACKS_PKGS
to include libmysqlclient
🤔
Any thoughts?4 Replies
Try
NIXPACKS_APT_PKGS=mysql-client
if NIXPACKS_PKGS did not work for you.ah ha -
NIXPACKS_APT_PKGS=default-mysql-client
ended up doing the trick! thank you!dropped a feature request in here for future people: https://github.com/railwayapp/nixpacks/issues/610
GitHub
Support MySQL for PHP Laravel apps · Issue #610 · railwayapp/nixpac...
Feature request It would be sweet if Nixpacks could automatically install the default-mysql-client apt package when a Laravel/PHP app is detected. Motivation Currently, in order to get my Laravel a...
Great. I am glad it worked out.