如何将开发模式 rails 应用程序与 nginx 服务器连接?

How to connect development mode rails app with nginx server?

我想 运行 我的 rails 应用程序在开发模式下使用 nginx 服务器,因为我想覆盖 remotipart。请指导我如何将 rails 应用程序与 nginx 连接。

  1. 安装 nginx
  2. 安装 Passenger
  3. 根据你的设置nginx.conf文件
  4. 启动 nginx 通过 localhost 你的 nginx 页面将启动
  5. gem 在你的项目中安装 passenger
  6. passenger-install-nginx-module
  7. 客运出发

通过这个link了解更多详情:https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html#install_on_debian_ubuntu