为什么我无法 运行 Unicorn RoR
Why I am not able to run Unicorn RoR
我正在尝试使用 Amazon Linux 和 Ansible 在 Amazon EC2 上安装 RoR 服务器。一切顺利,最后我无法 运行 独角兽。我检查过独角兽 gem 已安装
`gem list | grep unicorn`
显示已安装独角兽。
当我输入
`unicorn_rails`
我收到命令未找到错误。我检查了我的 gem 文件,它有行 gem unicorn
然后我 运行 bundle install
并且输出列表中有 unicorn
。还是没能运行呢。
谢谢。
如果您使用捆绑器 运行 unicorn with bundle exec:
$ bundle exec unicorn_rails
了解更多 here。
我不确定你可以 运行 unicorn_rails
。只需使用:
bundle exec unicorn -p <port> -c <path_to_config_file>
例如:
bundle exec unicorn -p 3000 -c ./config/unicorn.rb
我正在尝试使用 Amazon Linux 和 Ansible 在 Amazon EC2 上安装 RoR 服务器。一切顺利,最后我无法 运行 独角兽。我检查过独角兽 gem 已安装
`gem list | grep unicorn`
显示已安装独角兽。
当我输入
`unicorn_rails`
我收到命令未找到错误。我检查了我的 gem 文件,它有行 gem unicorn
然后我 运行 bundle install
并且输出列表中有 unicorn
。还是没能运行呢。
谢谢。
如果您使用捆绑器 运行 unicorn with bundle exec:
$ bundle exec unicorn_rails
了解更多 here。
我不确定你可以 运行 unicorn_rails
。只需使用:
bundle exec unicorn -p <port> -c <path_to_config_file>
例如:
bundle exec unicorn -p 3000 -c ./config/unicorn.rb