Closed
Description
Preliminary checklist
- I am using the latest stable version of DDEV (see upgrade guide)
- I have searched existing issues
- I have checked the troubleshooting guide
- I have run
ddev debug test
to include output below
Output of ddev debug test
Expand `ddev debug test` diagnostic information
[COPY-PASTE HERE THE OUTPUT OF `ddev debug test`]
Expected Behavior
Copy and pasting the CakePHP quickstart should:
- install website
- automatically launch the browser to the functionaling website
Actual Behavior
Composer stops and asks to "Set Folder Permissions":
$ ddev composer create --prefer-dist cakephp/app:~5.0
...
PHP CodeSniffer Config installed_paths set to ../../cakephp/cakephp-codesniffer,../../slevomat/coding-standard
Executing composer command: [composer run-script post-create-project-cmd]
> App\Console\Installer::postInstall
Created `config/app_local.php` file
Created `/var/www/html/logs` directory
Created `/var/www/html/tmp/cache/views` directory
Set Folder Permissions ? (Default to Y) [Y,n]?
Steps To Reproduce
Follow quickstart guide for CakePHP (replicated below)
mkdir my-cakephp-site && cd my-cakephp-site
ddev config --project-type=cakephp --docroot=webroot
ddev composer create --prefer-dist cakephp/app:~5.0
ddev cake
ddev launch
Anything else?
I tried use --no-interaction
on the composer line but it still stopped.
Eg. ddev composer create --prefer-dist cakephp/app:~5.0 --no-interaction
I believe this is because of the composer run-script post-create-project-cmd
line which doesn't inherit the flag.
Adding a .ddev/.env
file with COMPOSER_NO_INTERACTION=1
does NOT cause composer to stop. But we probably don't want this to always be active, only during the initial "ddev composer create" step.
Metadata
Metadata
Assignees
Labels
No labels