在 CentOS 上启动时启动 Rails 服务器

发布于 2025-01-05 21:05:05 字数 208 浏览 3 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

暮色兮凉城 2025-01-12 21:05:05

查看使用 ruby​​ 企业版设置 nginx。

Have a look at setting up nginx with ruby enterprise edition.

本宫微胖 2025-01-12 21:05:05

查看 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文