Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/54.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Capistrano部署未从GitHub获取最新提交_Ruby On Rails_Git_Github_Capistrano3 - Fatal编程技术网

Ruby on rails Capistrano部署未从GitHub获取最新提交

Ruby on rails Capistrano部署未从GitHub获取最新提交,ruby-on-rails,git,github,capistrano3,Ruby On Rails,Git,Github,Capistrano3,当我运行“cap production deploy”时,我没有在服务器上获取我的最新主机。以下是部署日志中的so行: DEBUG[208486a4] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/----/git-ssh.sh /usr/bin/env git ls-remote git@github.com:------.git ) DEBUG[208486a4] 3983b992ede90e5957dc9ddb953c4df4883

当我运行“cap production deploy”时,我没有在服务器上获取我的最新主机。以下是部署日志中的so行:

DEBUG[208486a4] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/----/git-ssh.sh   /usr/bin/env git ls-remote git@github.com:------.git )
DEBUG[208486a4]     3983b992ede90e5957dc9ddb953c4df488354d7d    HEAD
DEBUG[208486a4]     3983b992ede90e5957dc9ddb953c4df488354d7d    refs/heads/master
DEBUG[208486a4] Finished in 0.832 seconds with exit status 0 (successful).
随后在日志中:

INFO[38bea0b3] Running /usr/bin/env echo "Branch master (at 18306db) deployed as release 20140626124746 by dean; " >> /home/deploy/royalty/revisions.log on 96.126.121.168
DEBUG[38bea0b3] Command: echo "Branch master (at 18306db) deployed as release              20140626124746 by dean; " >> /home/deploy/royalty/revisions.log
INFO[38bea0b3] Finished in 0.116 seconds with exit status 0 (successful).
我最近从使用assembla的回购转为使用github。提交:18306db是我向assembla提交的最后一个提交。但是,当我在github上查看回购协议时,所有新提交都会显示出来

我用set-url更改了源url,然后将其向上推到github


我在这里错过了什么??谢谢

终于找到了一个与此相关的问题:

并遵循第二个答案中对我有用的建议


登录到服务器并删除了app\u name/repo文件夹(rm-rf/app\u name/repo)

谢谢!这解决了在Github上更改存储库所有者后的部署问题。