Curl fails to download Drush
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 35/100
Research direction
Inspect lib/capdrupal.rb and the drush:get task, focusing on the curl command used to download Drush. Confirm the download follows the server redirect, then verify that extraction and the subsequent chmod command still run successfully.
Written by the indexing model from the issue text.
Description
Adding the -L parameter fixes the issue
-L: "If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place."
diff --git a/lib/capdrupal.rb b/lib/capdrupal.rb
old mode 100644
new mode 100755
index 97f3382..9a54023
--- a/lib/capdrupal.rb
+++ b/lib/capdrupal.rb
@@ -183,7 +183,7 @@ Capistrano::Configuration.instance(:must_exist).load do
namespace :drush do
desc "Gets drush and installs it"
task :get, :roles => :app, :except => { :no_release => true } do
- run "#{try_sudo} cd #{shared_path} && curl -O -s http://ftp.drupal.org/files/projects/drush-7.x-5.8.tar.gz && tar -xf drush-7.x-5.8.tar.gz && rm drush-7.x-5.8.tar.gz"
+ run "#{try_sudo} cd #{shared_path} && curl -LO -s http://ftp.drupal.org/files/projects/drush-7.x-5.8.tar.gz && tar -xf drush-7.x-5.8.tar.gz && rm drush-7.x-5.8.tar.gz"
run "#{try_sudo} cd #{shared_path} && chmod u+x drush/drush"
end
- Dominant language
- Ruby
- Stars
- 40
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from capistrano/drupal-deploy
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
capistrano/drupal-deploy#14 · 6 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
capistrano/drupal-deploy#11 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
capistrano/drupal-deploy#3 · 1 comment ·
-
Support Drupal 8 Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
capistrano/drupal-deploy#1 · 3 comments ·
All issues in capistrano/drupal-deploy
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TheOdinProject/curriculum#31408 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
notch8/utk_knapsack#148 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Homebrew/homebrew-cask#288729 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100