The easiest thing to do is to just blow away the cached-copy directory
on all your deployment servers, and redeploy:
rm -rf /var/rails/app_name/shared/cached-copy
Deleting that directory will have no effect on your running application.
It will just cause capistrano to reclone your repository on the next deploy.
- Jamis
On 4/23/09 8:26 AM, chris wrote:
> That I am. I have checked the .git/config files on the server, but
> the only thing in them is:
>
> [core]
> repositoryformatversion = 0
> filemode = true
>
> Is there another config file that I am missing?
>
> On Apr 23, 7:49 am, Giovanni Intini<
inti...@gmail.com> wrote:
>> You're probably using the remote cache strategy, .git/config on the
>> server still points to the old github account.
>>
>> Just manually edit it or remove the cache directory and redeploy.
>>
>> Il giorno 23/apr/09, alle ore 15:27, chris<
olsen.ch...@gmail.com> ha
>> scritto:
>>
>>
>>
>>
>>
>>> Oops, a copy and past issue on the previous console output. Here is
>>> the correction.
>>> $ cap deploy
>>> * executing `deploy'
>>> * executing `deploy:update'
>>> ** transaction: start
>>> * executing `deploy:update_code'
>>> updating the cached checkout on all servers
>>> executing locally: "git ls-remote g...@github.com:NEW_SERVER/
>>> app_name.git master"
>>> * executing "if [ -d /var/rails/app_name/shared/cached-copy ]; then
>>> cd /var/rails/app_name/shared/cached-copy&& git fetch origin&& git
>>> reset --hard 904c8b690ea51115bbcc89dfcb24d67f6963c7b4; else git
>>> clone g...@github.com:NEW_SERVER/app_name.git /var/rails/app_name/
>>> shared/cached-copy&& cd /var/rails/app_name/shared/cached-copy&& git
>>> shared/cached-copy&& cd /var/rails/app_name/shared/cached-copy&& git
>>> checkout -b deploy 904c8b690ea51115bbcc89dfcb24d67f6963c7b4; fi\"" on
>>>
lixx-xx.members.linode.com
>>> On Apr 23, 7:18 am, chris<
olsen.ch...@gmail.com> wrote:
>>>> I recently renamed my github account and have been having problems
>>>> since. For some reason when I run the cap deploy command the remote
>>>> server continues to make calls to old github address.
>>>> The old account name no longer exists any where within the project
>>>> and
>>>> I am able to make committals to the remote git server with no issues.
>>>> Thanks for the help.
>>>> $ cap deploy
>>>> * executing `deploy'
>>>> * executing `deploy:update'
>>>> ** transaction: start
>>>> * executing `deploy:update_code'
>>>> updating the cached checkout on all servers
>>>> executing locally: "git ls-remote g...@github.com:greenstem/
>>>> NEW_SERVER.git master"
>>>> * executing "if [ -d /var/rails/NEW_SERVER/shared/cached-copy ];
>>>> then cd /var/rails/NEW_SERVER/shared/cached-copy&& git fetch origin
>>>> && git reset --hard 904c8b690ea51115bbcc89dfcb24d67f6963c7b4; else
>>>> git clone g...@github.com:greenstem/NEW_SERVER.git /var/rails/
>>>> NEW_SERVER/shared/cached-copy&& cd /var/rails/NEW_SERVER/shared/
>>>> cached-copy&& git checkout -b deploy