Rails应用程序的入口点在哪里?

[英]Where is the entry point for a Rails application?


I can't find out what file is the first one to be executed when starting a Rails application. Does anybody know?

我无法找到启动Rails应用程序时第一个要执行的文件。有人知道吗?

1 个解决方案

#1


5  

First, to answer the question: the init documentation from July 2011 (Rails 3.0, when this question was asked) points out railties/bin/rails as the first file to run on Rails invocation.

首先,回答这个问题:2011年7月的初始文档(Rails 3.0,当问到这个问题时)指出railties / bin / rails是第一个在Rails调用上运行的文件。

Second, more generally, this question was asked and answered over four years ago. The link in the first answer still works, but only for the current version (Rails 4 as of early 2016). Those who are looking for historical information on this topic may be best served by trying the Internet Archive. For example, a snapshot of this document from April 2013 (Rails 3.2):

其次,更普遍的是,这个问题在四年前得到了回答。第一个答案中的链接仍然有效,但仅适用于当前版本(截至2016年初的Rails 4)。那些正在寻找关于这个主题的历史信息的人可能最好通过尝试互联网档案。例如,2013年4月该文档的快照(Rails 3.2):

http://web.archive.org/web/20130409080134/http://guides.rubyonrails.org/initialization.html

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2011/07/27/72068e9e8a6445d1954d6a9eceed15f1.html



猜您在找
iPhone:基于视图的应用程序的起点在哪里? - iPhone: Where is the Starting Point in an View-Based Application? WPF应用程序的入口点是什么? - What is the entry point of a WPF application? 应用程序客户端jar的多个入口点(主类) - Multiple entry point (mainclass) for application client jar LoopbackJS - 如何定义客户端应用程序的入口点? - LoopbackJS - How to define the entry point for the client application? 在Rails web应用程序中把这些代码放在哪里? - Where to put these code in a Rails web application?
智能推荐
 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告