HamletS
Does anyone know how to enable mongoDB drivers in a php/laravel project?
I'm not really sure now, yesterday I was trying by all the ways.
I'm doing the next steps:
1: required by composer
2: download it with the NIXPACKS_PKGS
3: run composer install && composer update in the building part
But here is where it fails, it says mongodb driver isn't loaded in the OS
8 replies
Installing php-gd extension
There is truly an option, but I don't know if it is working since for me isn't.
It is the NIXPACKS_PCKGS=["...","name of the nix package you want"]
The ... Is for all the packages by default de project require
And the others packages you want you can search it in the nix repositories and added to this argument.
But again, I tried this approach in order to install mongoDB drivers for mi php/Laravel project and it still not working.
I hope you have a better result, you can search more about this in the nixpacks documentation.
(Edit: also if you need there is a very similar approach but with apt-ger for apt packages)
16 replies