服务器部署之 cap deploy:setup
文章是从我的个人博客上粘贴过来的,
大家也可以访问 www.iwangzheng.com
$ cap deploy:setup
执行到这一步的时候会时间较长,可以直接中断
* executing "sudo -p 'sudo password: ' yum check-update -q -y || true"
$ git log <file name>
可以查看关于这个文件的所有log
在cap deploy自动执行到bundle install的时候报错,
Unfortunately, a fatal error has occurred. Please see the Bundler
** [out :: 11.11.11.11] troubleshooting documentation at http://bit.ly/bundler-issues.
bundle执行不过去是因为没有设置代理,所以服务器不能访问外网
在服务器current文件夹里
$export http_proxy=http://11.11.11.xx:80
$echo $http_proxy
$bundle