Add Drupal Drush command pm-update, currently does not work
Add Drupal Drush command pm-update, currently does not work. In order for this to work, users need permission to write to a file outside of the http root directory. This should be pretty straight forward to create a dir users can write to outside the http root dir. A dir like this could be used for a number of benefits.
Please check:
Cloudways Team
-
max
commented
running a command like pml accessing via ssh gave me a headache as it resulted in
Command pm-enable needs a higher bootstrap level to run - you will [error]
need to invoke drush from a more functional Drupal environment to run
this command.the problem was that i ran the command not in the public_html folder, but in the root. so when cd to public_html and running drush pml there, it works just fine
-
AdminCloudways
(Admin, Cloudways)
commented
Thanks for that and we will definitely do it. We are working on a drush KB as we speak.
Cloudways Team
-
Anonymous
commented
I've worked around this by using the tmp directory which is writeable.
Create a folder called drush in sites/all e.g. sites/all/drush
Into this folder place a Drush config file: drushrc.php
In this file set the path of the backup directory to be that of your tmp folder:
$options['backup-dir'] = '/home/17832-7904.cloudwaysapps.com/yynmjcgujx/tmp';
Drush can now save backups into the tmp folder and update contrib and core.
Might be be worth adding similar instructions to the knowledge base?
Cheers