【问题标题】:Nginx and Unicorn Set up Not sure what I am doingNginx 和 Unicorn 设置不知道我在做什么
【发布时间】:2013-06-20 00:03:59
【问题描述】:

这是我第一次设置 nginx 和 unicorn,有人指导我看这个教程:

http://teohm.github.io/blog/2013/04/17/chef-cookbooks-for-busy-ruby-developers/

我对自己在做什么有一个大致的了解,但我被困在这个部分:

在远程服务器上安装 chef-solo

当我跑步时 bundle exec knife solo prepare testbox

我明白了

ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known
Check your knife configuration and network settings

我猜我没有 ~/.ssh/config

这是来自示例

Host testbox
  User ubuntu
  Hostname ec2-51-221-13-121.ap-southeast-1.compute.amazonaws.com
  IdentityFile ~/.ssh/testbox_ec2.pem

我想在 .ssh 中创建一个配置文件吗?我应该切换到 ubuntu 吗?

我正在使用heroku,我应该如何找到我的主机名? ssh中的pem文件是什么?

【问题讨论】:

    标签: ruby-on-rails nginx unicorn


    【解决方案1】:

    我从来没有用过刀...关于设置 Capistrano、Nginx 和 Unicorn 可能值得查看 this blog post - 我一直发现 Capistrano 是一个很好的部署应用程序(并且有很多支持对于它,尤其是在 SO 上)。

    在 Heroku 上,您不会像使用 Capistrano 或任何其他部署实用程序那样进行部署 - 您只需推送到 Heroku 服务器上的分支。请参阅:https://devcenter.heroku.com/articles/git,了解如何使用 Git 在 Heroku 上进行部署。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-13
      • 1970-01-01
      • 2017-01-07
      • 2011-05-12
      • 2017-10-07
      • 2014-02-16
      • 2020-05-15
      • 1970-01-01
      相关资源
      最近更新 更多