Can't run Composer -- directories and files owned by "web"
Permanently deleted user
I’ve got a trial Professional account. In an SSH session, I want to add a module to a Drupal site using Composer:
composer require drupal/admin_toolbar
But in the /app directory, the host shows directories and files are owned by “web” so composer.json isn’t writable (and caches can’t be created).
Before I chown everything in /web, is there a Platform.sh way to handle this?
0
Comments
Hi @linkletter - would you mind pasting in a copy of your
.platform.app.yamlfile?Hey @linkletter - I don’t see anything in your build hook, which is the only time the file system is writable.
I’d try either running
composer require drupal/admin_toolbarfirst locally and pushing the updatedcomposer.lockfile, or placing that line in your build hook.Please sign in to leave a comment.