Skip to content

CLI won't work without write permissions #7933

Closed
@ludwig-gramberg

Description

@ludwig-gramberg

I'm so tired of this cr*p.

Why do you still enforce that the CLI must have write permissions to certain directories. There is more than one workflow to deploy magento and not all require/allow to change code on a production server.

Please remove this "feature" or make it optional by app/etc/env.php

Preconditions

mage 2.1.2

Steps to reproduce

  1. remove write permission to var/generation
  2. try to run any cli command

Expected result

  1. the cli command runs

Actual result

  1. "Command line user does not have read and write permissions on var/generation directory."

Comments/Thoughts

We compile all code locally and then deploy it but we're are forced to run the indexer and a custom upgrade command for module updates. Nothing is supposed to change code in production, nothing. Not a cli command not the webserver process. The code is static and only changed by the deployment process.

Please consider making this check optional or remove it or downgrade it to a warning.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions