10 months ago
I'm trying to deploy a Laravel app that uses MongoDB.
The app requires the PHP MongoDB driver to work. Normally, I install it using pecl install mongodb, but I haven't found a way to install it during deployment.
Because of this, the app crashes.
I hope you can tell me how to run this command just before the build, or at any other appropriate step.
2 Replies
10 months ago
Our team is working on getting back to you as soon as possible. In the meantime, we've found the following might help you get unlocked faster:
- 📚 Deploy a Laravel App
- 📚 Railway vs. Render
- 🧵 problems when deploying laravel app with postgresql database
If you find the answer from one of these, please let us know by solving the thread! Otherwise, we’ll be in touch.
10 months ago
Hello, is this still open?
If yes, i think you should add nixpacks.toml in your project with the content of
[phases.setup]
nixPkgs = ["php82Extensions.mongodb"]
Better still, you can switch to a custom docker file if you want more control