【发布时间】:2011-02-10 18:48:29
【问题描述】:
在routes.rb中,我设置了一个控制器和一个动作为root,在开发模式下访问root时效果很好。
现在,我尝试使用 nginx 将 rails 应用程序连接在一起,似乎 nginx.conf 需要 rails public 文件夹,而不是在 routes.rb 中设置的根路径。
public文件夹下的index只能是静态html,如何以root身份钩住nginx和rails action?
感谢您的回答!
【问题讨论】:
标签: ruby-on-rails deployment nginx action root