jackd248 / ddev-commands-collection

Collection of reusable DDEV commands
MIT License
3 stars 1 forks source link

fix: make init script work on first run without database #9

Open tgaertner opened 7 months ago

tgaertner commented 7 months ago

TYPO3: With the new project structure with just one composer file the init command fails in first run because database does not exist jet and composer scripts try to setup TYPO3 stuff. This fix runs composer install with --no-scripts parameter and runs the typo scripts after initial project setup (which creates a database).

jackd248 commented 7 months ago

Is this the correct assumption for an initial installation of the project?

With a new project, there is no dcc installed. So the first thing is a ddev composer install --no-scripts (to install dcc and other requirements). After that the ddev init can be called, right?