Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在这个网站上运行了指令,一切都很顺利。但是,当我输入 URL 时,我收到 404 错误。我的服务器运行 CentOS。我不应该能够通过我在 deploy.rb 文件中定义的 URL 访问我的 Rails 应用程序吗?我究竟做错了什么?
URL 取决于您如何配置服务器。为了为 Rails 应用程序提供服务,您需要安装一个 Web 服务器(Thin、Mongrel、Passenger、Nginx...)并将其配置为为您的 Rails 应用程序提供服务。
该站点将在您配置 Web 服务器主机的 URL/IP 上可用。