プロジェクト

全般

プロフィール

気づき #865

奈良 裕記 さんが5年以上前に更新

Redmineの運用にて、Rake コマンド利用事例の蓄積用チケット 

 Rakeの基本的な使い方まとめ 
 http://unageanu.hatenablog.com/entry/20100829/1283069269 

 Railsドキュメント Rake 
 http://railsdoc.com/rake 

 h3. rake のコマンド一覧表示 

 
 bundle exec rake -h RAILS_ENV=production 

 h3. route情報の表示 

 bundle exec rake routes     RAILS_ENV=production 

 Prefix Verb と、対応する    URI Pattern            Action 

 Prefix Verb                URI Pattern             Controller#Action 
 home GET                   /                       welcome#index 
 signin GET|POST            /login(.:format)        account#login 

 h3. Roleと、許可されるactionを表示 

 bundle exec rake redmine:permissions     RAILS_ENV=production 

 Permission Name - controller/action pairs 
 :add_documents - documents/new, documents/create, documents/add_attachment, attachments/upload 


 h3. 行数の表示(LOC/Classes/Methods) 

 bundle exec rake stats    RAILS_ENV=production 

戻る