第一次设置 Rails - 这正常吗?
我正在尝试通过 CPanel 设置 Rails 环境。我尝试过几种不同的托管环境(在所有这些环境上我都使用 CPanel 创建项目),并且我总是得到以下结果:
这是我做错的事情吗 - 我必须首先创建模型/控制器等 - 或者我需要咆哮的东西我的托管提供商的树是关于什么的?
I am trying to setup a Rails environment via CPanel. I've tried on several distinct hosting environments (on all of which I used CPanel to create the project) and I always get the following:
Is this something I've done wrong - I have to first create models/controllers etc - or something I need to bark up my hosting provider's tree about?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否尝试过在本地运行您的应用程序?如果我没记错的话,出于安全原因,“关于您的应用程序的环境”将不会加载,除非它来自本地主机。
Have you tried running your app locally? If I remember correctly, for security reasons, the "about your application's environment" won't load unless it's from localhost.
如果您在生产模式下运行应用程序(因此它被识别为不在本地运行),rails 不会显示此信息,而是会显示此消息。
我遇到了这个问题,想知道当我第一次在带有乘客的服务器中设置新应用程序时出了什么问题。 Passenger的默认环境是生产环境,因此不会显示此信息。如果您想看到它们,您必须将其设置为开发模式,为此,请转到您的虚拟主机文件并添加以下内容:
当您开始创建应用程序时,从应用程序中删除 index.html民众。
If you are running your app in production mode (so it is recognized as it doesn't run locally), rails won't show this information, instead it will show this message.
I had this issue and wondering what's wrong when I first setup a new application in a server with passenger. The default environment of passenger is the production so it doesn't show this info. You have to set it up to development mode if you want to see them, to do that go to your virtual host file and add this:
When you start creating your application, delete the index.html from the public.
目前最大支持版本为:
Ruby 1.8.7
RubyGems 1.8.25
Rails 2.3.18
任何比这更新的东西都几乎肯定会损坏,并且 cPanel 和 cPanel 都可能会损坏。 WHM 将无法以任何方式、形式或形式利用它。
http://tickets.cpanel.net 可以帮助您删除现有的 Ruby on Rails 安装并将其恢复到cPanel 支持和认可的版本(Ruby 1.8、RubyGems 1.8 和 Rails 2)。这是他们此时唯一能为你做的事情。
如果您想使用比这更新的任何版本,那么您将无法使用 cPanel 和 cPanel。 WHM 接口或管理工具——它们根本不起作用。然后,您必须通过命令行手动管理您的 RoR 安装。这些都不属于 cPanel 支持的范围。
Maximum supported versions at this time are:
Ruby 1.8.7
RubyGems 1.8.25
Rails 2.3.18
Anything newer than that is a near guaranteed breakage and cPanel & WHM will be incapable of utilizing it in any way, shape, or form.
http://tickets.cpanel.net can assist you with removing your existing Ruby on Rails installations and reverting them back to cPanel supported and sanctioned versions (Ruby 1.8, RubyGems 1.8, and Rails 2). That is the only thing they can do for you at this time.
If you want to use any versions newer than this, then you will be unable to use the cPanel & WHM interfaces or management tools for it -- they simply will not work. You will then have to manually manage your RoR install by yourself through command line exclusively. None of it would fall under the scope of cPanel support.