在 CentOS 上启动时启动 Rails 服务器
我对 Rails 还很陌生,并试图解决问题,我在网上查看过,但运气不佳。
我有一些服务器在启动时运行 Rails,根本不使用 rc.local,但我不明白为什么。
我所需要的只是让 Rails 在端口 80 上以生产模式启动(而不是 3000,因为其余服务器也在端口 80 上启动)。
有什么想法吗?
webrick 上的 ATM 中继
I'm pretty new to rails and trying to figure things out, I looked online but not much luck.
I have some servers that are running rails on startup without using rc.local at all, but I can't figure out why.
All I need is for rails to start on boot in production mode on port 80 (instead of 3000, as the rest of the servers also start on port 80).
Any ideas?
ATM relaying on webrick
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看使用 ruby 企业版设置 nginx。
Have a look at setting up nginx with ruby enterprise edition.
查看 Phusion 乘客。它支持标准 Apache Web 服务器和 Nginx Web 服务器。
http://www.modrails.com/
Check out Phusion Passenger. It supports both the standard Apache web server and Nginx web server.
http://www.modrails.com/