capistrano

Capistrano SSH::AuthenticationFailed, not prompting for password

 ̄綄美尐妖づ 提交于 2019-12-17 17:36:47
问题 I've been using capistrano successfully for a while now and all of a sudden in every project I've lost the ability to deploy. Environment: os X (Mavericks) ruby 1.9.3p194 rvm (locally, not on server) rails 3.2 and up RubyGems 1.8.25 I'm not using rsa_keys or anything I want capistrano to prompt for user and password. Suddenly it has decided not to ask for a password, but does ask for user. Then it rolls back and gives me the following error. [deploy:update_code] exception while rolling back:

Capistrano: Can I set an environment variable for the whole cap session?

梦想的初衷 提交于 2019-12-17 06:34:19
问题 I've got a staging server with both standard Ruby and Ruby Enterprise installed. As standard Ruby refuses to install a critical gem, I need to set $PATH so that ruby/gem/rake/etc. always refer to the REE versions. And since I use Capistrano to deploy to our machines, I need to do it in Capistrano. How can I set an environment variable once, and have it persist throughout the Capistrano session? 1) It's easy to do in bashrc files, but Capistrano doesn't read bashrc files. 2) I'd use Capistrano

How do I run a rake task from Capistrano?

不羁的心 提交于 2019-12-17 05:34:55
问题 I already have a deploy.rb that can deploy my app on my production server. My app contains a custom rake task (a .rake file in the lib/tasks directory). I'd like to create a cap task that will remotely run that rake task. 回答1: A little bit more explicit, in your \config\deploy.rb , add outside any task or namespace: namespace :rake do desc "Run a task on a remote server." # run like: cap staging rake:invoke task=a_certain_task task :invoke do run("cd #{deploy_to}/current; /usr/bin/env rake #

What is your preferred php deployment strategy? [closed]

蹲街弑〆低调 提交于 2019-12-17 04:10:11
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm beginning a new project in PHP and I'd love to get some feedback from other developers on their preferred strategy for PHP

Rails Capistrano Deploy - REVISION: No such file or directory

自古美人都是妖i 提交于 2019-12-14 04:06:54
问题 I'm using the Capistrano gem and this tutorial to deploy my application to my remote server. Everything works fine until the end of the cap deploy command. I'm receiving this error: ** [ps123456.dreamhostps.com :: out] sh: myapp.git/releases/20130916201449/REVISION: No such file or directory command finished in 2266ms *** [deploy:update_code] rolling back * executing "rm -rf myapp.git/releases/20130916201449; true" servers: ["ps123456.dreamhostps.com"] [ps123456.dreamhostps.com] executing

Capistrano Could not locate Gemfile or .bundle/ directory?

让人想犯罪 __ 提交于 2019-12-14 03:58:56
问题 I try to use Capistrano in my rails app on Ubuntu server , and run cap production deploy got this message: Could not locate Gemfile or .bundle/ directory here is my setting: lock '3.4.0' `ssh-add` # need this to make key-forwarding work set :application, 'beaconserver' set :repo_url, 'my git' set :deploy_to, '/home/john/projects/beaconserver' set :log_level, :debug set :keep_releases, 5 set :linked_files, %w(config/database.yml config/secrets.yml) set :linked_dirs, fetch(:linked_dirs, [])

Rails Deploy Digitalocean ActiveSupport::MessageEncryptor::InvalidMessage:

痞子三分冷 提交于 2019-12-14 03:44:44
问题 I'm deploying an app on digitalocean following this guide: https://www.digitalocean.com/community/tutorials/deploying-a-rails-app-on-ubuntu-14-04-with-capistrano-nginx-and-puma#prerequisites When I deploy with cap cap production deploy:initial --trace I keep getting this error The deploy stops here: 01 ~/.rvm/bin/rvm default do bundle exec rake assets:precompile 01 rake aborted! 01 01 ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::Inva… 01 and when I run

ERROR rbenv: 2.1.2 is not installed or not found

空扰寡人 提交于 2019-12-14 03:21:33
问题 I'm trying to deploy my Rails app project to my Digital Ocean vps using this guide. When it says: cap production deploy:check I get a error: DEBUG [8906f2ab] Running /usr/bin/env [ ! -d ~/.rbenv/versions/2.1.2 ] on 178.62.204.53 DEBUG [8906f2ab] Command: [ ! -d ~/.rbenv/versions/2.1.2 ] DEBUG [8906f2ab] Finished in 1.320 seconds with exit status 0 (successful). ERROR rbenv: 2.1.2 is not installed or not found in ~/.rbenv/versions/2.1.2 I ran: rbenv install 2.1.2 Which resulted in: Downloading

Capistrano3 deploy fails after migrating the server

狂风中的少年 提交于 2019-12-14 03:07:14
问题 I am using Capistrano 3. In the past I could successfully deploy to my server. Now the server migrated and has new parameters: SSH Access (I updated SSH credentials and made sure that I can connect without password using authorized_keys ) Deploy Dir (I updated staging.rb accordingly along with SSH Credentials) Now cap could connect to my new server so the Auth seemed fine. Problems with current directory However, I got an Error when using cap staging deploy : SSHKit::Command::Failed: if test

Capistrano unsupported key type

旧时模样 提交于 2019-12-14 02:47:38
问题 When I do 'cap production deploy' with capistrano on CentOS, I get following errors. What I'm sure is that my pirvate key for both git and server are both perfect original files, and public key is normally on the server. And I have ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "example-rsa")] in my production.rb, and I put the file as /root/.ssh/example-rsa correctly. I ssh-add ed my private key for git and server. Strange thing is that even though both files require pass-phrase, my