当我开始生产部署'我没有在服务器上获得我最新的主人。以下是部署日志中的行:
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的repo切换到github。提交:18306db是我推送到assembla的最后一次提交。但是当我在github上查看回购时,所有新的提交都会显示出来。
我用set-url更改了原始网址,然后将其推送到github。
我在这里想念的是什么?感谢
答案 0 :(得分:9)
最后找到了一个与此相关的问题:Capistrano error tar: This does not look like a tar archive
并按照第二个答案中的建议对我有用。
登录服务器并删除app_name / repo文件夹(rm -rf / app_name / repo)