How to change the temporary dir capistrano used?
How to change the temporary dir capistrano used? like instead of /tmp, i use /home/user/tmp ...
How to change the temporary dir capistrano used? like instead of /tmp, i use /home/user/tmp ...
I have a basic Rails 3 app working locally on my development box, but want to test out deploying early on to make sure everything works. I'm using Capistrano to deploy. When I run cap deploy (after all the other necessary setup), it breaks on this command with this error: [...] * executing 'bundle:install' * executing "bundle install ...
Background: I'm aiming to deploy a rails app and am hosting a remote repository for this app on DreamHost. I am using Git for version control. I have created a local repository, committed and pushed this to the remote repository via ssh. This is roughly the process I took in creating the remote repository. I seem to have created the remo...
Anyone know what happened to http://www.capify.org/ ? Seems to have been missing for several days, still number one on Google for "Capistrano" Are there any mirrors of Capistrano documentaion anywhere? Thanks :) ...
What is the proper way to set up Capistrano to deploy a Rails app to multiple environments with different permissions required for each environment? In other words, imagine a typical scenario where a developer makes changes to code and pushes the changes to a testing environment. After testing, a release manager pushes the changes to pro...
I'm migrating my capistrano setup into webistrano and keep getting this error when I run any deployment commands: executing locally: "git ls-remote [email protected]:REPO.git HEAD" Could not save revision: Unable to resolve revision for 'HEAD' on repository 'REPO_ADDRESSS' My capistrano setup has the same params and works no problem from ...
Capistrano sometimes fails to pull the newest source from github, but shows no errors. On several occasions now, cap deploy did not pull the latest code from my git repo, but showed no errors in the process. Repeatingly running cap deploy does not fix the issue, but running git pull origin master on the actual server does pull in the n...
Please share your experience: tips and hints, how do you debug cap receipts and how to develop new tasks on dev. machine ...
Gemfile is checked in the repo and from the server I am able to checkout the Rails application with the Gemfile in the right place (Rails.root). When I run 'cap deploy' Capistrano copies everything except the Gemfile, so I get the Bundler error 'Could not locate Gemfile'. Whey with SVN I am able to checkout Gemfile and Capistrano is not?...
Can I use Capistrano from a windows dev machine to deploy to a Linux server? This is for a rails app. ...
This is my first deployment. I did a cap deploy:setup which worked fine. Then, when I try to execute cap deploy:update I run into error messages. Something along the lines of rm: cannot remove `/var/www/app_name/current': Is a directory Here is my capfile and directory permissions. http://pastie.org/1189919 In general, what is the...
Capistrano keeps asking me for password for every deplyoyment. How do I not let it happen? ruby version 1.8.7 REE capistrano version 2.5.19 Here is my capfile and directory permissions. http://pastie.org/1189919 Everything up-to-date ** transaction: start * executing `deploy:update_code' updating the cached checkout on all s...
I think I need to understand this from the basic level. Form what I know so far it seems, there are a few user account involved in deploymnent 1 - Deployer user for capistrano 2 - www-data account (not sure exactly what this does) 3 - the git user What do .. 1 - each of these users do? 2 - what permissions they need onthe productio...
I am getting the followoing error when I try to do a deploy via a "deploy" user account. 1782001..ae10d1b master -> master ** transaction: start * executing `deploy:update_code' updating the cached checkout on all servers executing locally: "git ls-remote [email protected]:username/app_name.git master" * executing "if [ -d ...
Scenario 1. I am doing this from /home/deploy directory I am trying to set up ssh with github for capistrano deployment. this has been an absolute nightmare. when I do ssh [email protected] as the deploy account I get Permission denied (publickey). so may be the key is not being found, so If I do a ssh-add /home/deploy/.ssh/id_rsa Co...
I am trying to automate deployments of a particular project and a bit lost as to who to handle config file as well as user assets. (Application is based on Zend Framework based btw). Main application folder is structured as follows: ./app ./config.ini <----- config file ./modules ./controllers ./models ./view...
When I run this command in deploy.rb (Capistrano): run "cd /sites/rails-data/#{application}/current/ && svn up Gemfile && bundle install --without=test" Capistrano get stuck with: Conflict discovered in 'Gemfile' How can I solve this issue is I do not what is the problem? ...
We have two applications running on production servers, each in its own directory under /usr/local, so let's say there's /usr/local/app1 and /usr/local/app2. Each app has a separate remote git repo. app1 is already being deployed for quite some time via capistrano+webistrano using remote_cache including some recipe changes that were ma...
I have a rails2 plugin which has a capistrano task. That file resides at ~/myplugin/recipes/ . I am converting this plugin into a gem which should work with rails3. This is what I did. I created recipes file inside the lib/myplugin directory. So my file looks like ~/dev/myplugin/lib/myplugin/recipe.rb And added following line to my ...
Got the following error while trying to cap deploy:setup. It's like it failed to upload the database.yml file via sftp. I googled everywhere but had no solution. Not even a bit. * upload via sftp failed on xxx.xxx.xxx.xxx: Net::SFTP::StatusException (Net::SFTP::StatusException open /var/www/domain.com/username/shared/config/database....