Capistrano deploy fails after I changed the repository URL

前端 未结 10 696
野性不改
野性不改 2021-01-30 01:24

I have a simple deployment via capistrano from a Git repository. At first I was deploying form GitHub, everything worked just fine. But then I moved my repository to BitBucket a

10条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 01:56

    You need to change git origin in your /shared/cached-copy folder

    cd /var/www/your-project/production/shared/cached-copy
    git remote remove origin
    git remote add origin git@bitbucket.org:/origin.git
    

    try cap production deploy

提交回复
热议问题