sliver icon indicating copy to clipboard operation
sliver copied to clipboard

Sliver fails to start if environment is the only source of DB name

Open oddnoc opened this issue 8 years ago • 2 comments

My team has some projects where mysite is shared across multiple sites as a composer module. The global $database variable is the empty string and the DB name is entirely defined by SS_DATABASE_PREFIX & SS_DATABASE_SUFFIX via ConfigureFromEnv. Under such conditions, sliver fails to initialise with the message "Please configure your database connection details."

oddnoc avatar Jan 27 '17 00:01 oddnoc

@oddnoc thanks for the report. Do you have any suggestions for a way to make this work?

stevie-mayhew avatar Jan 27 '17 00:01 stevie-mayhew

I banged on it for a bit and came a cropper. I tried including mysite/_config.php, but maybe I did not have it at the right bit of the sliver script.

oddnoc avatar Jan 27 '17 20:01 oddnoc