Open balsama opened 2 months ago
I'm not sure we're going to be able to fix this outside of core.
Core's install
script, which we use, hard-codes the use of SQLite. To my dismay, I discovered that you can't just drush sql:dump
a SQLite database and then import it wholesale into MySQL. They speak two slightly different dialects of SQL, so that kind of quickie migration doesn't work. At least not without some messy fiddling around (think find-and-replace) that we definitely should not do.
So we have two options:
This is partially done in #108. If you use DDEV, the installer will now use whatever database it's providing, instead of forcing SQLite.
Installing on the host machine still defaults heavily to SQLite, but even that can be overridden now by tweaking drush/drush.yml
.
Database credentials are changeable both in bare-metal and DDEV environments, as of #108 and #111. (See https://github.com/phenaproxima/starshot-prototype/issues/10#issuecomment-2183683334.)
Changing the doc root is more involved, but certainly doable. We can do that as a separate feature.
A couple people were discussing this in slack and it's hard to imagine this as a common task that needs automation as a feature of the prototype. I personally can imagine a scripted migration of a project that uses /web into another format, but the devil is in the detail. What if someone starts committing files/modules/themes in the /web location? It quickly gets beyond a generic script i think.
The webroot directory name, in particular, is pretty baked into the Composer scaffold. I'd like to figure out how we're going to support this (or reject it) sooner rather than later.
@phenaproxima had some ideas I think?