capistrano也没有那么的智能呀
如果你修改了repo_url,那么还是老老实实的去线上把 repo目录删了吧。
虽然capistrano 的说明中也有说明了这个字段修改后的警示。。但是难免会忽略掉= =
- Warning: if you move your repository to a new URL and change this variable, already deployed remote servers won’t reflect this change automatically, you have to manually re-configure the repository on the remote servers (in path determined by
:repo_path
) or delete it (rm -rf repo
in the default setup) and let Capistrano recreate it on the next deploy using the updated URL.
如果修改了repo_url,能自动更新就好啦~