website design and development

Weblog - 1 items for Capistrano

View all
litespeed hosting Ruby on Rails cpanel smtp plesk port 26 email DNS spam rss IE6 float CSS gmail ActiveRecord has many through plugins news subversion migrations shell webmin mail IE7 ssl Capistrano git Flash Mac OS X ruby gems rspec cucumber Textmate Mac OS X webrat Rails 3 scope

Changing git remote repos with Capistrano - Repository not found

04 May 2009 Ruby on Rails  Capistrano  git

On changing where our remote git repos were stored we got the error
Repository not found
When trying to run
cap deploy
with capistrano.

We had changed the remote origin to the new repos locally with

git remote rm origin
git remote add origin <new remote>

It turned out the you need to change the remote on the server you are deploying to in the folder rails_app/shared/cached-copy
as it still references the old remote.   So the fix on the production server was.

cd rails_app/shared/cached-copy
git remote rm origin
git remote add origin <new remote>

© Level Systems 2007