开发者

how to deploy rails action as site root

in routes.rb, I set a controller and a action as root, it works very well when I visit root 开发者_运维技巧in development mode.

now , I try to use nginx to hook rails app together, seemed nginx.conf need rails public folder which is not the root path set in the routes.rb.

index under public folder only can be a static html, how could I hook nginx with rails action as root?

Thanks for your answer!


nginx is only a webserver - have you installed something like Passenger as your app server to run your application in? It's perfectly normal to map the webserver to your public folder but then the application server will process the request and serve back your app for you

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜