我在DigitalOcean上使用 mina deploy 托管的Ruby on Rails网站进行部署。我部署了我的应用程序,但是当我在浏览器上通过IP访问我的Droplet时,我收到错误:
We're sorry, but something went wrong.
我检查了独角兽日志,它显示了这个:
root@marconportfa2018:~# tail -f /var/log/unicorn/unicorn.log
/home/nrt/shared/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/utils.rb:547: warning: already initialized constant Rack::Utils::STATUS_WITH_NO_ENTITY_BODY
/usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/utils.rb:547: warning: previous definition of STATUS_WITH_NO_ENTITY_BODY was here
/home/nrt/shared/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/utils.rb:549: warning: already initialized constant Rack::Utils::SYMBOL_TO_STATUS_CODE
/usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/utils.rb:549: warning: previous definition of SYMBOL_TO_STATUS_CODE was here
/home/nrt/shared/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/utils.rb:562: warning: already initialized constant Rack::Utils::Multipart
/usr/local/rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/utils.rb:562: warning: previous definition of Multipart was here
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
I, [2018-04-16T20:53:27.589122 #26924] INFO -- : worker=1 ready
I, [2018-04-16T20:53:27.590074 #26922] INFO -- : worker=0 ready
我检查了nginx error.log:
root@marconportfa2018:/var/log/nginx# tail -f error.log
2018/04/16 07:09:26 [crit] 1226#0: *1 connect() to unix:/var/run/unicorn.sock failed (2: No such file or directory) while connecting to upstream, client: 177.183.110.26, server: _, request: "GET / HTTP/1.1", upstream: "http://unix:/var/run/unicorn.sock:/", host: "159.65.75.62"
.ruby版本
2.1.3@marconPortfa
有人可以帮助我吗?