8000 Run CakePHP Quickstart with no interaction (skip setting directory permissions) · Issue #6300 · ddev/ddev · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Run CakePHP Quickstart with no interaction (skip setting directory permissions) #6300
Closed
@tyler36

Description

@tyler36

Preliminary checklist

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0