-
Notifications
You must be signed in to change notification settings - Fork 104
Closed
Labels
Description
在尝试使用新的mina部署框架。
wblog项目在服务器上首次部署,遇到一些问题。
一直部署下来,遇到的不少问题都是google解决掉了。
其中最坑的就是
-----> Installing gem dependencies using Bundler
$ mkdir -p "/home/deploy/web/wblog/shared/bundle"
$ mkdir -p "./vendor"
$ ln -s "/home/deploy/web/wblog/shared/bundle" "./vendor/bundle"
$ bundle install --without development:test --path "./vendor/bundle" --deployment
经常报错,然后终止。有好几个gem,都要手动去gem install xxx -v 'xxx'这样子。再执行mina deploy -v
。
现在unicorn启动报错,异常信息如下:
-----> Start Unicorn
$
cd /home/deploy/web/wblog/current && bundle exec unicorn -c config/unicorn/production.rb -E production -D
/home/deploy/web/wblog/releases/1/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:75:in `read': No such file or directory @ rb_sysopen - config/unicorn/production.rb (Errno::ENOENT)
from /home/deploy/web/wblog/releases/1/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:75:in `reload'
from /home/deploy/web/wblog/releases/1/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:68:in `initialize'
from /home/deploy/web/wblog/releases/1/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in `new'
from /home/deploy/web/wblog/releases/1/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in `initialize'
from /home/deploy/web/wblog/releases/1/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `new'
from /home/deploy/web/wblog/releases/1/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
from /home/deploy/web/wblog/releases/1/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `load'
from /home/deploy/web/wblog/releases/1/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `<main>'
master failed to start, check stderr log for details
! ERROR: Deploy failed.
发现这跟你在deploy.rb中做的配置有关。
应该怎么解决呢?