Ruby-on-rails-rails-scripts
提供:Dev Guides
Ruby on Rails-スクリプト
Rubyは、プロジェクトの実装中に使用する多くの便利なスクリプトを提供します。 最も頻繁に使用するスクリプトは次のとおりです。
Script | Description |
---|---|
script/about | Gives information about environment. |
script/breakpointer | Starts the breakpoint server. |
script/console | Interactive Rails Console. |
script/destroy | Deletes files created by generators. |
script/generate | Used by generators. |
script/runner | Executes a task in the rails context. |
script/server | Launches the development server. |
script/performance/profile | Profiles an expansive method. |
script/performance/benchmarker | Benchmarks different methods. |
スクリプトの例
スクリプトを呼び出す例を次に示します。 次のスクリプトは開発サーバーを起動します。
C:\ruby> ruby script/server