新手问题 Rails 程序按 development 方式部署和 production 方式部署有什么不同?

kenneth · June 26, 2012 · Last by kenneth replied at June 26, 2012 · 3021 hits

我用 develpment 方式部署能运行,但是 production 方式则不行。 这两种方式部署要注意点什么,尤其是 production 方式。

具体差异在 config/environments/里的配置 production 出错是因为默认的设置生产环境的静态文件(比如编译好的 assets)交给下游处理(一般 nginx),你可以修改配置让 rails 处理,但是会降低性能

@jasl 非常感谢,感觉你说的很对。动态请求和静态请求分离。

You need to Sign in before reply, if you don't have an account, please Sign up first.