View more context

 

ccburns

So I was thinking of taking it out of _config.php and having it in _ss_environment.php

ccburns

It seems to be working okay on my test machine but thought I would ask for any gotcha's

ccburns

@nightjarnz I didn’t really understand what you were saying. Are you saying it is bad to have the DB name defined in _ss_environment.php?

nightjarnz

hmm, hang on, my brain isn't straight, let me just finish what I'm doing so I can provide a more sensible answer

nightjarnz

not bad, just... it's easy to run into your exact problem if you do 😉

ccburns

So I have removed $database from the _config.php file and it will be ONLY set in _ss_environment.php. Okay so as long as we don’t try to include $database anywhere then we should be all good

nightjarnz

if $database is not set (to a sane value) in _config.php, then it'll use the _ss_environment.php SS_DATABASE_NAME, and if that isn't defined, and the option to CHOOSE is, it'll use the (Nth) parent directory's name.