capistrano

Bundle install failing when deploying a Rails 3 app to Dreamhost with Capistrano

心已入冬 提交于 2019-12-19 04:08:16
问题 I am trying to deploy a locally working Rails 3 app to Dreamhost with Capistrano. When I run 'cap deploy -v' in my local app root I get so far before it chokes on 'bundle install'. The following is the end of the error message: ** transaction: start ** [abunchofletters.co.uk :: out] my_username@abunchofletters.co.uk's password: Password: ** [abunchofletters.co.uk :: out] ** [abunchofletters.co.uk :: out] HEAD is now at 62f9cdb Initial deploy to Dreamhost ** [out :: abunchofletters.co.uk] sh:

mod_xsendfile with symbolic links

不想你离开。 提交于 2019-12-18 16:45:10
问题 I'm running into an issue using xsendfile with my Rails 3 app. I'm using capistrano to manage deployments and in each release, there is a symbolic link to the shared/assets dir (e.g. /var/www/site/releases/1234/assets => /var/www/site/shared/assets). The problem is that that XSendFile doesn't seem to follow the symbolic links. In my apache logs, I'm seeing the following error: The given path was above the root path: xsendfile: unable to find file: /var/www/site/releases/20110406205607/assets

Capistrano and several SSH keys

家住魔仙堡 提交于 2019-12-18 12:49:48
问题 I need Capistrano to use 2 different SSH keys. One is for the git repository, one is for the server to deploy to. Whichever key I rename to id_rsa in my .ssh folder, works. The other one doesn't. If I rename the git key to id_rsa, Capistrano can connect to the git repository, but then can't authenticate at the server to deploy. If I call it something else, it will not be able to connect to the git repo. I know that the other key works, cause I can do ssh -i ~/.ssh/otherKey.pem and it will

launching background process in capistrano task

倾然丶 夕夏残阳落幕 提交于 2019-12-18 11:53:59
问题 capistrano task namespace :service do desc "start daemontools (svscan/supervise/svscanboot)" task :start, :roles => :app do sudo "svscanboot&" end end Now this doesn't work: the svscanboot process simply doesn't run. This helped me find sleep : https://github.com/defunkt/resque/issues/284 other sources pointed me to nohup , redirection , and pty => true , so I tried all these. run "nohup svscanboot >/tmp/svscanboot.log 2>&1 &" # NO run "(svscanboot&) && sleep 1" # NO run "(nohup svscanboot&)

Please require this file from within a Capistrano recipe (LoadError)

久未见 提交于 2019-12-18 11:16:23
问题 I'm using Capistrano 2 with Rails 3 project. Recently I rebuilt my gemset form scratch and now I receive error "Please require this file from within a Capistrano recipe (LoadError)" when I try to run rails server. Detailed error message: /Users/leonidlukin/.rvm/rubies/ruby-1.9.3-p429/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/leonidlukin/Sites/moscowshows/script/rails server -b 0.0.0.0 -p 3000 -e development /Users/leonidlukin/.rvm/gems/ruby-1.9.3-p429

Sidekiq deploy to multiple environments

。_饼干妹妹 提交于 2019-12-18 10:16:11
问题 (See below for my detailed config, which is the result of Henley Chiu's answer). I've been trying to wrap my brain around Sidekiq deploys, and I am not really getting it. I have an app with a staging environment, and a production environment, on the same server. Everything I see about sidekiq deploys basically say "just add sidekiq/capistrano to your deploy file", so I did that. And then the instructions are "here's a yml file with options" but nothing seems to be explained. Do I need

Capistrano - How to put files in the shared folder?

帅比萌擦擦* 提交于 2019-12-18 10:13:32
问题 I am new to Capistrano and I saw there is shared folder and also option :linked_files . I think shared folder is used to keep files between releases. But my question is, how do files end up being in the shared folder? Also, if I want to symlink another directory to the current directory e.g. static folder at some path, how do I put it at the linked_dirs ? Lastly how to set chmod 755 to linked_files and linked_dirs. Thank you. 回答1: Folders inside your app are symlinks to folders in the shared

psych.rb error when deploying with Capistrano 'mapping not allowed in this context'

我是研究僧i 提交于 2019-12-18 08:00:07
问题 I'm trying to deploy a Rails app to a CentOS 6/nginx/passenger server, but cap deploy:cold is giving me an error. Here's the relevant part from deployment output: * 2013-03-31 17:49:59 executing `deploy:assets:update_asset_mtimes' * executing "[ -e /home/appuser/apps/britaincares/shared/assets/manifest.yml ] && cat /home/appuser/apps/britaincares/shared/assets/manifest.yml || echo" servers: ["www.britaincares.co.uk"] [www.britaincares.co.uk] executing command command finished in 303ms ***

Fatal: could not read Username for 'https://github.com': No such device or address

与世无争的帅哥 提交于 2019-12-18 01:03:27
问题 I have been deploying my Rails 4 application to Rackspace using github and capistrano for a few weeks now. Everything worked fine until I finally made my repository private. Now, I am receiving the following error after running 'cap deploy': "fatal: could not read Password for 'https://username@github.com': No such device or address" Below is the code from my deploy.rb file set :application, "appname" set :repository, "https://git_username@github.com/git_username/appname.git" set :scm, :git

Rails 4, Capistrano 3.0.0, cannot load such file — deploy

时间秒杀一切 提交于 2019-12-17 22:33:34
问题 I just ran bundle update and capistrano got updated to 3.0.0 but now when I run cap deploy I get an error and can't figure out how to fix this. I have been updating my server every day without problem until this update. cap aborted! cannot load such file -- deploy /home/mark/rails_apps/myapp/Capfile:1:in `load' /home/mark/rails_apps/myapp/Capfile:1:in `<top (required)>' capfile load 'deploy' load 'deploy/assets' load 'config/deploy' # remove this line to skip loading any of the default tasks