Not Found MongoDB Driver - Laravel MongoDB
giobones12
HOBBYOP

a year 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.

$10 Bounty

2 Replies

Railway
BOT

a year 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:

If you find the answer from one of these, please let us know by solving the thread! Otherwise, we’ll be in touch.


idiegea21
HOBBY

a year 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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...