starshot-prototype icon indicating copy to clipboard operation
starshot-prototype copied to clipboard

Should Drupal CMS automatically install itself?

Open phenaproxima opened this issue 1 year ago • 2 comments

Right now, Drupal CMS automatically spins itself up into a SQLite database when you do composer create-project. Is that overzealous? Should it perhaps be a second command (a simple script in composer.json)? So you'd do something like:

composer create-project phenaproxima/drupal-suite mysite
cd mysite && composer install-drupal

The balance we're trying to achieve here is being as easy and painless as possible to get up and running (thus the choice of SQLite), without becoming overbearing.

phenaproxima avatar Mar 26 '24 03:03 phenaproxima

Does it work on Windows the same as it does on Mac/Linux?

I have been super impressed with the speed on the drupal quick-start script. If this is cross platform and negates the need for the Docker based tools, I think that would be a win.

thejimbirch avatar May 01 '24 00:05 thejimbirch

Well...it should. But I'm not sure.

Windows is tricky 'cause it's just gotta do weird shit all the time. That said, I bet this would work reasonably well on WSL. But Windows users might want to favor Docker-based things for a lot of other reasons.

That said, the self-installation thing is using the script that is part of core, so it should be as compatible with Windows as core itself is willing to be.

phenaproxima avatar May 08 '24 01:05 phenaproxima

I'm leaning towards removing the "immediately install upon project creation" thing. I think it's okay to add one more step.

What I propose is that you'd do this, regardless of your preferred dev environment:

composer create-project yadda-yadda...
cd project-dir

Then you could either do this if you're not using DDEV:

composer drupal:quick-start

That would install into a SQLite database and open it, same as now. But if you are wanting to use DDEV:

ddev quick-start

This would be the existing "install" script, merely renamed for clarity.

IMHO this would be a completely reasonable set of installation steps. Two commands (three if you include the cd), one of which would be copy-pasteable.

phenaproxima avatar Jun 22 '24 00:06 phenaproxima

The previous comment is now implemented and documented. The installation is no longer a one-liner; it's a grand total of...2 commands. Three if you count the 'cd' into the project directory. Still extremely easy, and on par with other modern software.

The choice has been made, so I'm closing this issue.

phenaproxima avatar Jun 23 '24 12:06 phenaproxima