Drush is a command line shell and scripting interface for Drupal.
1
vote
1answer
90 views
How do I set the drush tmp directory?
I understand how to use /etc/drush/drush.ini; however, I don't know what exactly to put in there in order for Drush to use a different temp directory when creating an archive-dump.
0
votes
1answer
120 views
cannot update Drupal core with drush
Why can't Drush find the Drupal core module?
root@hostname:/var/www/html/sites/example.org# drush pm-update core
...
Wysiwyg (wysiwyg) 7.x-2.2 7.x-2.2 Up to ...
1
vote
1answer
24 views
Drush finding 3rd party module but can't install
Have moneyscripts modules installed and drush does not update these 3rd party scripts but still I get a notification via drupal that update is required.
So I used drush up command but failed to ...
3
votes
1answer
111 views
git post-receive hook to trigger drush rsync without prompt or with predefined answer
I have set up post-receive hook on my staging server, so whenever I push from dev server a master branch, it updates staging webroot and triggers drush rsync to update live site.
#!/bin/bash
...
0
votes
1answer
92 views
Git workflow from dev to live when central repo is in local network [closed]
I use @dev - @stage - @live workflow, managed with drush rsync and drush aliases to update code, syncing db down from @live to @dev / @stage to have recent state.
Recently, I am trying to implement ...
0
votes
1answer
44 views
drush core-config causes 'Permission denied'
When I use command as follow:
drush core-config
and then enter
1
a error displayed:
sh:/etc/php.ini: Permission denied
how to solve this problem?
0
votes
1answer
26 views
How can I get views_save_view($view) to return TRUE when using Drush?
I have a script that calls various views API functions, namely views_save_view() or $view->save().
When using Drush 5 to run the script, these functions return false. However, when I run these with ...
0
votes
1answer
53 views
How can I run Drush as user 1 in version 5?
Drush v3 had a --user flag (--user=1), however, this seems to be removed since v4, according to the website. How can I run Drush 5 as logged in as user 1?
0
votes
1answer
51 views
drush perm-grant gives “The drush command 'perm-grant' could not be found”
I am using drush -u 15 perm-grant --roles="site administrator" but the command returns:
The drush command 'perm-grant' could not be found.
any ideas about that? according this documentation the ...
-1
votes
1answer
151 views
“bash: drush: command not found” even when I´ve followed all steps to install Drush [closed]
I´m trying to install drush in my server.
So, I´ve opened Putty (I´m on windows, while my dev host is a remote linux), and after logging in, and outside my public folder, I´ve typed
wget ...
0
votes
0answers
48 views
Drush restore to proper folder level
Before working on a site, I take a quick dump of a site via drush arb --destination=/var/backup/latest.tgz --overwrite from the root level /var/www/html.
However, on the rare occasion that I need to ...
1
vote
4answers
179 views
How to access a remote site using the command line (with drush)?
I don´t know how to use drush nor the command line, so I´ve started to read some tutorials, and watch some videos. I´ve installed the drush windows installer, because I have windows.
The thing is ...
0
votes
1answer
41 views
Enable modules across platforms using Features/Drush
I am wondering, could this be automated.
I download and enable contrib modules on @dev
I push files on @live (including new modules)
via Features/Drush I tell @live to enable new modules, so servers ...
1
vote
1answer
72 views
Drush sql-sync to drop tables on target
Command:
drush sql-sync @prod @dev
As I experienced, it does not drop tables on target (@dev) machine.
Is there a way, while syncing this way, to drop tables on target, so databases match ...
0
votes
2answers
54 views
Drush features commands + git
I have a doubt about the functionality of Drush Features commands when it works with git:
Before I do a git pull, can I do drush fu example? Will this command overwrite the changes of the feature ...
0
votes
1answer
80 views
sql-sync to sync default and secondary database
I created proper aliases and sucessfully pulled files/database from live to dev server.
drush sql-sync @live @dev
But I noticed my secondary database (defined also in settings.php and in aliases) has ...
2
votes
2answers
66 views
Drush: Wrong PHP version when trying to sql-sync with SSH
I'm trying to upload a database on the server with SSH by using sql-sync, but I'm getting the following error:
PHP Parse error: syntax error, unexpected '{' in ...
1
vote
1answer
29 views
drush xmlsitemap-regenerate domain is incorrect
Whenever I run
drush xmlsitemap-regenerate
on our live server, the domains in the sitemap all refer to:
http://default
Only when I generate the sitemap from the Drupal admin backend, do I get ...
2
votes
1answer
111 views
How do I restore a site using drush?
I have been learning drush and I loving it. i am having a tough time understanding how to backup and restore my site. Often I bork my site and just need to quickly restore it. These are the steps I am ...
0
votes
2answers
143 views
How to export nodes as XML?
I need to export all polls of a D6 site in XML format so that they can be imported to Django. Node export module states that one can choose to export nodes in xml using drush. However I could not find ...
7
votes
1answer
167 views
How do I do git clone with drush to download the HEAD version of a module?
Is there any way to clone or pull the HEAD version of a module in drupal.org git repository?
For example, if I'm on Drupal 7, and the last branch of Views is 3, I would like to do:
drush git-clone ...
0
votes
0answers
28 views
Running drush cache-clear via capistrano, output shown as errors
I'm deploying a Drupal 7 site using Capistrano + Drush, and using the following to clear the cache:
run "#{drush} cache-clear all"
The command runs fine, and give the following output:
...
0
votes
1answer
51 views
How do I install the Spark distribution using only Drush?
How do I fire up the Spark Distribution via a drush command?
1
vote
1answer
56 views
Drush minimal bootstrap only for variables for vget
How do you make drush bootstrap minimal. How do you specify the bootstrap method like DRUPAL_BOOTSTRAP_VARIABLES, DRUPAL_BOOTSTRAP_CONFIGURATION in the drush command?
Background:
I just want to ...
3
votes
2answers
142 views
How to make drush work correctly in windows?
In linux drush is comfortable with all linux native commands. But how to make it works in Windows?
Of course there is a drush installer for windows and it is correct, but the real question is how to ...
0
votes
1answer
38 views
Drush command to show installed modules but not being used?
In the process of developing a site I inevitably install modules thinking they are the ones I want but they are not. I am looking for drush command to find these modules to disable them and reduce my ...
3
votes
2answers
66 views
Can I set Drush to always use verbose?
Its quite annoying to have to type -v.
Is there a way to change the drush settings so that it will always use verbose mode so I dont have to bother typing -v?
0
votes
1answer
42 views
site created using drush arr failing with missing index.php
I am using drush archive to copy a live site to a test environment. The test environment is on my local machine, the live site is on a hosted platform.
The arr command seems to complete successfully ...
0
votes
0answers
90 views
Crontab to trigger scripts with drush commands
I've read this question and the answers links through to Jenkins. Looked into it but was way over my head to install and set up.
The other answer links to this page which talks about running cron ...
0
votes
0answers
42 views
Lost content when updating drupal 7 via drush in ssh for production site
I just did a drush update on drupal 7 production site and contents pages set up in views disappeared.
Any suggestions for checklist before importing database backup?
This has me wondering if I ...
2
votes
2answers
120 views
How to use Drush's concurrent execution capability?
I am using Drupal multi-sites (single codebase, multiple sites/*). Along with this, I have started using Drush aliases to manage them:
$ cat sites/all/drush/aliases.drushrc.php
<?php
...
2
votes
0answers
99 views
drush only runs with sudo
When I run Drush without sudo I get the header plus: drush is designed to run via the command line. Drush with sudo works as intended.
I have read that: You do not need root-level permissions to use ...
1
vote
2answers
204 views
Drush command to download AND enable a module
To download and install a module, I run:
drush dl module_name
drush en module_name -y
I put that in a bash script function:
function drin(){
drush dl $1
drush en $1 -y
}
And just call ...
0
votes
2answers
56 views
Drush & Fbconnect on Windows 7
I have installed fbconnect module with Drupal 6 on Windows 7. Everything seems to be working fine. From front end I can login to my site via fbconnect. However when I try to run and drush script, for ...
0
votes
1answer
87 views
Where to place drush in MAMP [closed]
I placed drush in MAMP folder outside of htdocs folder and downloaded drupal successfully but obviously to wrong folder. Where should drush be placed to have it work with drupal folder in htdocs ...
1
vote
2answers
133 views
Drush without SSH access on remote server
Following my previous question, I plan to duplicate my website so that I have a production website and a staging site. I am going to have the staging site on a local version on Ubuntu, and it was ...
0
votes
3answers
78 views
Drush error during adding an install profile as platform
In Aegir, I add a platform with a buildfile:
core = 7.x
api = 2
projects[] = drupal
projects[profiler_drupal_base][type] = "profile"
projects[profiler_drupal_base][download][type] = "git"
...
0
votes
1answer
39 views
How do I update Drupal 7 to Drupal 7 DEV via Drush command line?
I have an old drupal 7 installation and I would like to update this via drush. Usually I download the drupal 7 dev version through the website using wget and untar it into the public_html directory ...
0
votes
1answer
122 views
Drush on Amazon EC2 - Update local code while using a remote database
I am using Amazon's EC2 for my development environment and Pantheon for my deployment environment. Code changes are pushed to Pantheon using git. And this much works fine.
I would like to use drush ...
1
vote
1answer
62 views
Can't run drush core-cli
I have installed drush on crunchbang linux and while most of the drush commands are working, I can't get core-cli to work. Typing drush @dev core-cli produces:
The drush command 'core-cli' could ...
2
votes
1answer
88 views
Change drush language
Suddenly my drush has switched language and displays error messages in my native language, which is unfortunately not convenient if one tries to search for solutions on these errors.
Do you know how ...
5
votes
1answer
113 views
How to download the projects within a distribution using git, not just the distribution itself?
I've set $options['package-handler'] = 'git_drupalorg'; set in my .drushrc.php file. Now when I run drush make for a distribution (in this case, the 7.x-3.x-dev release of Commons), the distribution ...
1
vote
2answers
79 views
Manager user permissions with drush
I would like to manage user permission with drush, but I don't find any command on the official documentation website. Could anyone tell me what to do?
I am using Drupal 6, and Drush 6.0-dev.
-2
votes
1answer
68 views
where and how to manually apply patch? [duplicate]
Possible Duplicate:
How do I apply a patch file?
It is obvious latest colorbox plugin needs patching because even with drush install it is not working to load images and I've been at it all ...
3
votes
1answer
43 views
When running DB updates, in what order are module update hooks called?
I'm watching a Drupal 6 to 7 upgrade run, wondering at the order these updates are called.
Aside from being in numeric order per each module, it seems that the module updates have been combined and ...
1
vote
1answer
126 views
How to update drupal using drush and excluding folders
How can I use pm_update drupal but excluding some folders?? For example, I don't want to update Sites and Profiles folders
Thank you and sorry if this is too obvious but I'm new with Drupal and I ...
4
votes
4answers
507 views
Drush installation problem
I have successfully installed and configured Drush and i am able to work with it.
Though i am getting an error like this
The following restricted PHP modes have non-empty values:
...
0
votes
1answer
20 views
How to retrieve data from set with drush_set_option() from within install profile
I've been messing around with trying to pass varabiles to an install profile based on a signup form, as descripbed in this post. I'm able to get the data out of the form and into drush using ...
0
votes
2answers
77 views
How do you Drush reset an administrator password?
How do you Drush reset an administrator password after forgetting the pass and losing its email?
1
vote
2answers
162 views
Creating a new user role with Drush
I can do loads of user-related stuff with Drush, but I can't see how to create new user roles. Is it possible to do this with Drush?



