我部署我的Rails應用到Linux服務器和我有一些rake任務丟失計有耙寶石:安裝和耙分貝如何建設任務「寶石:安裝」
我運行軌道2.3.4來自創業板。
這是爲什麼?
我該如何解決這個問題?我可以更新嗎?
他們是從耙-T列表中缺少
rake apache2 # Build Apache 2 module
rake clean # Remove compiled files
rake clobber # Remove all generated files
rake default # Build everything
rake doc # Generate all documentation
rake doxygen # Generate Doxygen C++ API documentation if ...
rake doxygen:clobber # Remove generated Doxygen C++ API documenta...
rake doxygen:force # Force generation of Doxygen C++ API docume...
rake fakeroot # Create a fakeroot, useful for building nat...
rake nginx # Build Nginx helper server
rake package # Build all the packages
rake package:clean # Remove package products
rake package:debian # Create a Debian package
rake package:force # Force a rebuild of the package files
rake package:gem # Build the gem file passenger-2.2.4.gem
rake rdoc # Build the rdoc HTML Files
rake rdoc:clobber # Remove rdoc products
rake rdoc:force # Force a rebuild of the RDOC files
rake sloccount # Run 'sloccount' to see how much code Passe...
rake test # Run all unit tests and integration tests
rake test:cxx # Run unit tests for the Apache 2 and Nginx ...
rake test:integration # Run all integration tests
rake test:integration:apache2 # Run Apache 2 integration tests
rake test:integration:nginx # Run Nginx integration tests
rake test:oxt # Run unit tests for the OXT library
rake test:rcov # Run coverage tests for the Ruby libraries
rake test:restart # Run the 'restart' integration test infinit...
rake test:ruby # Run unit tests for the Ruby libraries
我耙文件包含此:
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
如何添加寶石和db耙任務嗎?爲什麼他們錯過了?
喜盧卡斯 我剛纔跑創業板安裝導軌--no裏--no-的RDoc --force但仍下落不明rake任務分貝和寶石等 的話,我已經跑寶石更新--system和它說沒有更新。 是的,這個項目是基於rails 2.3.3創建的,但已經更新到2.3.4,並且在GEM中沒有任何東西在運行。 任何想法? 非常感謝 – 2009-11-20 14:01:23
剛剛在我的服務器上創建了一個新的Rails應用程序,它具有所有的Rake任務。這是怎麼回事!!!!! – 2009-11-20 14:06:03
只要注意到你有問題用capistrano標記。可能檢查以確保cap沒有定義自己的rake任務而沒有連接到rails。 – Lukas 2009-11-20 14:17:20