Support the ongoing development of Laravel.io →
Installation Configuration Database

Hi, I'm new here so please don't bite.

My question is I use MAMP for development (I know I need to move on) and I use digital ocean for my cloud sever with forge setup to quick deploy from GitHub but the problem I'm running into is how do I set it up to know which database setting to use if it's using production sever or development server is there a way for it to know which ones to use

Last updated 2 years ago.
0

Anybody?

Last updated 2 years ago.
0

I might be misunderstanding your question, but you usually define config per environment (i.e production or development). Read more here: http://laravel.com/docs/configuration#environment-configuration

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.