部署 Ubuntu 16.04 部署出错

BigNerdCoding · March 18, 2017 · Last by BigNerdCoding replied at March 20, 2017 · 1376 hits

参照教程 [地址][https://www.digitalocean.com/community/tutorials/deploying-a-rails-app-on-ubuntu-14-04-with-capistrano-nginx-and-puma],进行部署实验出现如下几个错误,急求解答:

  1. 使用 rails s 或者 rails s -b 0.0.0.0 能够拉起服务而 rails server --binding="IP" 则出现如下错误:
initialize': Cannot assign requested address - bind(2) for "IP"
  1. 使用 cap production deploy:initial 进行部署的时候出现错误:
(Backtrace restricted to imported tasks)
cap aborted!
Don't know how to build task 'start' (see --tasks)

请各位大师给解答一下疑问

rails server --binding="IP" 的 ip 是地址 不是 ip 字符

Reply to davidminaki

知道。问题已经解决了,第一个问题是腾讯云默认关闭了 IPV6 而 Rails5 IPV6 Only。

BigNerdCoding closed this topic. 20 Mar 09:12
You need to Sign in before reply, if you don't have an account, please Sign up first.