swiff icon indicating copy to clipboard operation
swiff copied to clipboard

Support DB_DSN for Craft 3.4+ Installs

Open jalendport opened this issue 4 years ago • 2 comments

In Craft 3.4, the ENV variables changed from using DB_DRIVER, DB_SERVER, DB_DATABASE, and DB_PORT to define your database config to just DB_DSN.

It would be great if Swiff could check for and use that value first and then fallback to searching for the old ENV variables (so older installs would continue to be supported).

jalendport avatar Mar 23 '20 16:03 jalendport

Hey Jalen, sounds like a great improvement - I'm fairly busy with twin at the moment but I'll see what I can do.

ben-rogerson avatar Mar 25 '20 02:03 ben-rogerson

Yes any way to overide the .env database settings - would be nice. Just switched to DDEV docker so accessing DB is different location than where the app accesses it.

wihodges avatar Aug 23 '22 16:08 wihodges