From 0bce7889160cfb5740d28aca292d164f381e4b1f Mon Sep 17 00:00:00 2001 From: Paul Gilzow Date: Mon, 5 Dec 2022 12:52:23 -0600 Subject: [PATCH 1/4] WIP: changes build flavor from composer to none, moves composer install to build hook --- templates/drupal9-govcms9/files/.platform.app.yaml | 4 +++- templates/drupal9-multisite/files/.platform.app.yaml | 4 +++- templates/drupal9/files/.platform.app.yaml | 6 ++++-- .../gatsby-drupal/files/drupal/.platform.app.yaml | 4 +++- templates/magento2ce/files/.platform.app.yaml | 4 +++- templates/sylius/files/.platform.app.yaml | 4 +++- templates/typo3/files/.platform.app.yaml | 4 +++- templates/wordpress-bedrock/files/.platform.app.yaml | 10 +++++++++- templates/wordpress-composer/files/.platform.app.yaml | 5 ++++- .../wordpress-woocommerce/files/.platform.app.yaml | 10 +++++++++- 10 files changed, 44 insertions(+), 11 deletions(-) diff --git a/templates/drupal9-govcms9/files/.platform.app.yaml b/templates/drupal9-govcms9/files/.platform.app.yaml index 4d5b1c648..ea6a46f53 100644 --- a/templates/drupal9-govcms9/files/.platform.app.yaml +++ b/templates/drupal9-govcms9/files/.platform.app.yaml @@ -66,7 +66,7 @@ mounts: # Configuration of the build of this application. build: - flavor: composer + flavor: none # The hooks executed at various points in the lifecycle of the application. hooks: @@ -78,6 +78,8 @@ hooks: # Code cannot be modified at this point but the database is available. # The site is not accepting requests while this script runs so keep it # fast. + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader deploy: | set -e php ./drush/platformsh_generate_drush_yml.php diff --git a/templates/drupal9-multisite/files/.platform.app.yaml b/templates/drupal9-multisite/files/.platform.app.yaml index 848777a53..d008a1150 100644 --- a/templates/drupal9-multisite/files/.platform.app.yaml +++ b/templates/drupal9-multisite/files/.platform.app.yaml @@ -70,7 +70,7 @@ mounts: # Configuration of the build of this application. build: # Automatically run `composer install` on every build. - flavor: composer + flavor: none # The hooks executed at various points in the lifecycle of the application. hooks: @@ -82,6 +82,8 @@ hooks: # Code cannot be modified at this point but the database is available. # The site is not accepting requests while this script runs so keep it # fast. + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader deploy: | set -e php ./drush/platformsh_generate_drush_yml.php diff --git a/templates/drupal9/files/.platform.app.yaml b/templates/drupal9/files/.platform.app.yaml index 649a4eb46..d745034b2 100644 --- a/templates/drupal9/files/.platform.app.yaml +++ b/templates/drupal9/files/.platform.app.yaml @@ -66,7 +66,7 @@ mounts: # Configuration of the build of this application. build: - flavor: composer + flavor: none # The hooks executed at various points in the lifecycle of the application. hooks: @@ -80,6 +80,8 @@ hooks: # fast. deploy: | set -e + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader php ./drush/platformsh_generate_drush_yml.php cd web # if drupal is installed, will call the following drush commands: @@ -148,7 +150,7 @@ crons: # Run Drupal's cron tasks every 19 minutes. drupal: spec: '*/19 * * * *' - commands: + commands: start: 'cd web ; drush core-cron' source: diff --git a/templates/gatsby-drupal/files/drupal/.platform.app.yaml b/templates/gatsby-drupal/files/drupal/.platform.app.yaml index 98817ab1d..efceea857 100644 --- a/templates/gatsby-drupal/files/drupal/.platform.app.yaml +++ b/templates/gatsby-drupal/files/drupal/.platform.app.yaml @@ -49,7 +49,7 @@ mounts: # Configuration of the build of this application. build: - flavor: composer + flavor: none # The hooks executed at various points in the lifecycle of the application. hooks: @@ -58,6 +58,8 @@ hooks: set -e bash install-redis.sh 4.3.0 # The deploy hook runs after your application has been deployed and started. + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader deploy: | set -e php ./drush/platformsh_generate_drush_yml.php diff --git a/templates/magento2ce/files/.platform.app.yaml b/templates/magento2ce/files/.platform.app.yaml index a9dbbb5ce..8c4da50d5 100644 --- a/templates/magento2ce/files/.platform.app.yaml +++ b/templates/magento2ce/files/.platform.app.yaml @@ -19,7 +19,7 @@ runtime: # Configuration of the build of this application. build: - flavor: composer + flavor: none dependencies: php: @@ -58,6 +58,8 @@ mounts: hooks: build: | set -e + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader php ./vendor/bin/ece-tools build:generate php ./vendor/bin/ece-tools build:transfer deploy: | diff --git a/templates/sylius/files/.platform.app.yaml b/templates/sylius/files/.platform.app.yaml index 2e83c4733..fe94f6727 100644 --- a/templates/sylius/files/.platform.app.yaml +++ b/templates/sylius/files/.platform.app.yaml @@ -1,7 +1,7 @@ name: app type: php:8.1 build: - flavor: composer + flavor: none variables: env: @@ -13,6 +13,8 @@ variables: hooks: build: | set -e + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader # Install the node version specified in the .nvmrc file n auto # Reset the location hash to recognize the newly installed version diff --git a/templates/typo3/files/.platform.app.yaml b/templates/typo3/files/.platform.app.yaml index d806765c2..a42ef05a2 100644 --- a/templates/typo3/files/.platform.app.yaml +++ b/templates/typo3/files/.platform.app.yaml @@ -22,7 +22,7 @@ runtime: # composer --no-ansi --no-interaction install --no-progress --prefer-dist --optimize-autoloader # if composer.json is detected. build: - flavor: composer + flavor: none # The relationships of the application with services or other applications. # The left-hand side is the name of the relationship as it will be exposed @@ -122,6 +122,8 @@ hooks: build: | # Exit hook immediately if a command exits with a non-zero status. set -e + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader # Start the installation with no interaction or extension setup, using `SetupConfiguration.yaml`. if [ ! -f var/platformsh.installed ]; then diff --git a/templates/wordpress-bedrock/files/.platform.app.yaml b/templates/wordpress-bedrock/files/.platform.app.yaml index c057d607e..78fbabbf3 100644 --- a/templates/wordpress-bedrock/files/.platform.app.yaml +++ b/templates/wordpress-bedrock/files/.platform.app.yaml @@ -9,7 +9,7 @@ type: "php:8.1" # Configuration of the build of the application. build: - flavor: composer + flavor: none dependencies: php: @@ -71,6 +71,14 @@ mounts: source: local source_path: "uploads" +hooks: + build: | + # Exit hook immediately if a command exits with a non-zero status. + set -e + + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader + source: operations: auto-update: diff --git a/templates/wordpress-composer/files/.platform.app.yaml b/templates/wordpress-composer/files/.platform.app.yaml index c6528dada..a7f4b6e04 100644 --- a/templates/wordpress-composer/files/.platform.app.yaml +++ b/templates/wordpress-composer/files/.platform.app.yaml @@ -9,7 +9,7 @@ type: "php:7.4" # Configuration of the build of the application. build: - flavor: composer + flavor: none dependencies: php: @@ -19,6 +19,9 @@ dependencies: hooks: build: | set -e + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader + # Copy manually-provided plugins into the plugins directory. # This allows manually-provided and composer-provided plugins to coexist. rsync -a plugins/* wordpress/wp-content/plugins/ diff --git a/templates/wordpress-woocommerce/files/.platform.app.yaml b/templates/wordpress-woocommerce/files/.platform.app.yaml index 82a440bb6..49bd7694d 100644 --- a/templates/wordpress-woocommerce/files/.platform.app.yaml +++ b/templates/wordpress-woocommerce/files/.platform.app.yaml @@ -14,7 +14,7 @@ dependencies: # Configuration of the build of the application. build: - flavor: composer + flavor: none # The relationships of the application with services or other applications. # The left-hand side is the name of the relationship as it will be exposed @@ -74,6 +74,14 @@ mounts: source: local source_path: "uploads" +hooks: + build: | + # Exit hook immediately if a command exits with a non-zero status. + set -e + + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader + source: operations: auto-update: From 34acfcfe6b91a745655d780dcb12e43d579b4520 Mon Sep 17 00:00:00 2001 From: Paul Gilzow Date: Mon, 5 Dec 2022 13:18:33 -0600 Subject: [PATCH 2/4] changes build flavor from composer to none. adds build hook to run composer install --- .../files/wordpress/.platform.app.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml b/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml index 4d2d80ead..0ae02f8ca 100644 --- a/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml +++ b/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml @@ -9,7 +9,7 @@ type: "php:7.4" # Configuration of the build of the application. build: - flavor: composer + flavor: none dependencies: php: @@ -65,3 +65,11 @@ mounts: "wordpress/wp-content/uploads": source: local source_path: "uploads" + +hooks: + build: | + # Exit hook immediately if a command exits with a non-zero status. + set -e + + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader From 260d1dfb42e72cce80aef9d32e72f12fedd9346d Mon Sep 17 00:00:00 2001 From: Paul Gilzow Date: Tue, 6 Dec 2022 11:00:26 -0600 Subject: [PATCH 3/4] Corrects the location for the comments regarding the deploy hook --- templates/drupal9-govcms9/files/.platform.app.yaml | 5 +++-- templates/drupal9-multisite/files/.platform.app.yaml | 5 +++-- templates/drupal9/files/.platform.app.yaml | 5 +++-- templates/gatsby-drupal/files/drupal/.platform.app.yaml | 3 ++- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/templates/drupal9-govcms9/files/.platform.app.yaml b/templates/drupal9-govcms9/files/.platform.app.yaml index ea6a46f53..d2d7bee96 100644 --- a/templates/drupal9-govcms9/files/.platform.app.yaml +++ b/templates/drupal9-govcms9/files/.platform.app.yaml @@ -74,12 +74,13 @@ hooks: # No services are available but the disk is writeable. build: | set -e + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader + # The deploy hook runs after your application has been deployed and started. # Code cannot be modified at this point but the database is available. # The site is not accepting requests while this script runs so keep it # fast. - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` - composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader deploy: | set -e php ./drush/platformsh_generate_drush_yml.php diff --git a/templates/drupal9-multisite/files/.platform.app.yaml b/templates/drupal9-multisite/files/.platform.app.yaml index d008a1150..d32808174 100644 --- a/templates/drupal9-multisite/files/.platform.app.yaml +++ b/templates/drupal9-multisite/files/.platform.app.yaml @@ -78,12 +78,13 @@ hooks: # No services are available but the disk is writeable. build: | set -e + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader + # The deploy hook runs after your application has been deployed and started. # Code cannot be modified at this point but the database is available. # The site is not accepting requests while this script runs so keep it # fast. - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` - composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader deploy: | set -e php ./drush/platformsh_generate_drush_yml.php diff --git a/templates/drupal9/files/.platform.app.yaml b/templates/drupal9/files/.platform.app.yaml index d745034b2..9cc0b4dd1 100644 --- a/templates/drupal9/files/.platform.app.yaml +++ b/templates/drupal9/files/.platform.app.yaml @@ -74,14 +74,15 @@ hooks: # No services are available but the disk is writeable. build: | set -e + # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader + # The deploy hook runs after your application has been deployed and started. # Code cannot be modified at this point but the database is available. # The site is not accepting requests while this script runs so keep it # fast. deploy: | set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` - composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader php ./drush/platformsh_generate_drush_yml.php cd web # if drupal is installed, will call the following drush commands: diff --git a/templates/gatsby-drupal/files/drupal/.platform.app.yaml b/templates/gatsby-drupal/files/drupal/.platform.app.yaml index efceea857..35f1b9a38 100644 --- a/templates/gatsby-drupal/files/drupal/.platform.app.yaml +++ b/templates/gatsby-drupal/files/drupal/.platform.app.yaml @@ -57,9 +57,10 @@ hooks: build: | set -e bash install-redis.sh 4.3.0 - # The deploy hook runs after your application has been deployed and started. # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader + + # The deploy hook runs after your application has been deployed and started. deploy: | set -e php ./drush/platformsh_generate_drush_yml.php From 37980e005f146cd7fd32d76cfab317540e96795f Mon Sep 17 00:00:00 2001 From: Paul Gilzow Date: Wed, 28 Dec 2022 08:00:22 -0600 Subject: [PATCH 4/4] Updates link to docs in comments to new location --- templates/drupal9-govcms9/files/.platform.app.yaml | 2 +- templates/drupal9-multisite/files/.platform.app.yaml | 2 +- templates/drupal9/files/.platform.app.yaml | 2 +- templates/gatsby-drupal/files/drupal/.platform.app.yaml | 4 ++-- templates/gatsby-wordpress/files/wordpress/.platform.app.yaml | 2 +- templates/magento2ce/files/.platform.app.yaml | 2 +- templates/sylius/files/.platform.app.yaml | 2 +- templates/typo3/files/.platform.app.yaml | 2 +- templates/wordpress-bedrock/files/.platform.app.yaml | 2 +- templates/wordpress-composer/files/.platform.app.yaml | 2 +- templates/wordpress-woocommerce/files/.platform.app.yaml | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/drupal9-govcms9/files/.platform.app.yaml b/templates/drupal9-govcms9/files/.platform.app.yaml index d2d7bee96..761ae2e46 100644 --- a/templates/drupal9-govcms9/files/.platform.app.yaml +++ b/templates/drupal9-govcms9/files/.platform.app.yaml @@ -74,7 +74,7 @@ hooks: # No services are available but the disk is writeable. build: | set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader # The deploy hook runs after your application has been deployed and started. diff --git a/templates/drupal9-multisite/files/.platform.app.yaml b/templates/drupal9-multisite/files/.platform.app.yaml index d32808174..122c2c0da 100644 --- a/templates/drupal9-multisite/files/.platform.app.yaml +++ b/templates/drupal9-multisite/files/.platform.app.yaml @@ -78,7 +78,7 @@ hooks: # No services are available but the disk is writeable. build: | set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader # The deploy hook runs after your application has been deployed and started. diff --git a/templates/drupal9/files/.platform.app.yaml b/templates/drupal9/files/.platform.app.yaml index a2a2a7958..a7f4ec3a4 100644 --- a/templates/drupal9/files/.platform.app.yaml +++ b/templates/drupal9/files/.platform.app.yaml @@ -74,7 +74,7 @@ hooks: # No services are available but the disk is writeable. build: | set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader # The deploy hook runs after your application has been deployed and started. diff --git a/templates/gatsby-drupal/files/drupal/.platform.app.yaml b/templates/gatsby-drupal/files/drupal/.platform.app.yaml index 35f1b9a38..242c51078 100644 --- a/templates/gatsby-drupal/files/drupal/.platform.app.yaml +++ b/templates/gatsby-drupal/files/drupal/.platform.app.yaml @@ -57,9 +57,9 @@ hooks: build: | set -e bash install-redis.sh 4.3.0 - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader - + # The deploy hook runs after your application has been deployed and started. deploy: | set -e diff --git a/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml b/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml index 62ec1196e..18bcb6c8d 100644 --- a/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml +++ b/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml @@ -71,5 +71,5 @@ hooks: # Exit hook immediately if a command exits with a non-zero status. set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader diff --git a/templates/magento2ce/files/.platform.app.yaml b/templates/magento2ce/files/.platform.app.yaml index 8c4da50d5..c621d9212 100644 --- a/templates/magento2ce/files/.platform.app.yaml +++ b/templates/magento2ce/files/.platform.app.yaml @@ -58,7 +58,7 @@ mounts: hooks: build: | set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader php ./vendor/bin/ece-tools build:generate php ./vendor/bin/ece-tools build:transfer diff --git a/templates/sylius/files/.platform.app.yaml b/templates/sylius/files/.platform.app.yaml index fe94f6727..95c0613c3 100644 --- a/templates/sylius/files/.platform.app.yaml +++ b/templates/sylius/files/.platform.app.yaml @@ -13,7 +13,7 @@ variables: hooks: build: | set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader # Install the node version specified in the .nvmrc file n auto diff --git a/templates/typo3/files/.platform.app.yaml b/templates/typo3/files/.platform.app.yaml index a42ef05a2..2a9ad0fd6 100644 --- a/templates/typo3/files/.platform.app.yaml +++ b/templates/typo3/files/.platform.app.yaml @@ -122,7 +122,7 @@ hooks: build: | # Exit hook immediately if a command exits with a non-zero status. set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader # Start the installation with no interaction or extension setup, using `SetupConfiguration.yaml`. diff --git a/templates/wordpress-bedrock/files/.platform.app.yaml b/templates/wordpress-bedrock/files/.platform.app.yaml index 78fbabbf3..8a7ef7726 100644 --- a/templates/wordpress-bedrock/files/.platform.app.yaml +++ b/templates/wordpress-bedrock/files/.platform.app.yaml @@ -76,7 +76,7 @@ hooks: # Exit hook immediately if a command exits with a non-zero status. set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader source: diff --git a/templates/wordpress-composer/files/.platform.app.yaml b/templates/wordpress-composer/files/.platform.app.yaml index 084d2e7b9..628c607ed 100644 --- a/templates/wordpress-composer/files/.platform.app.yaml +++ b/templates/wordpress-composer/files/.platform.app.yaml @@ -19,7 +19,7 @@ dependencies: hooks: build: | set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader # Copy manually-provided plugins into the plugins directory. diff --git a/templates/wordpress-woocommerce/files/.platform.app.yaml b/templates/wordpress-woocommerce/files/.platform.app.yaml index 49bd7694d..a279d2bfa 100644 --- a/templates/wordpress-woocommerce/files/.platform.app.yaml +++ b/templates/wordpress-woocommerce/files/.platform.app.yaml @@ -79,7 +79,7 @@ hooks: # Exit hook immediately if a command exits with a non-zero status. set -e - # @see https://docs.platform.sh/languages/php.html#build-flavor adding `--no-dev` + # @see https://docs.platform.sh/languages/php.html#change-the-build-flavor adding `--no-dev` composer install --no-dev --no-progress --no-ansi --no-interaction --prefer-dist --optimize-autoloader source: