如何构建任务“宝石:安装” [英] How to build task 'gems:install'
本文介绍了如何构建任务“宝石:安装”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行rails 2.3 .4从创业板。
为什么是这样?
我该如何解决?我可以更新吗?
他们从rake -T列表中缺少
pre>
rake apache2#构建Apache 2模块
rake clean#删除编译文件
rake clobber#删除所有生成的文件
rake default#构建所有内容
rake doc#生成所有文档
rake doxygen#生成Doxygen C ++ API文档如果...
rake doxygen:clobber#删除生成的Doxygen C ++ API文档...
rake doxygen :force#强制生成Doxygen C ++ API docume ...
rake fakeroot#创建一个fakeroot,用于构建nat ...
rake nginx#构建Nginx助手服务器
rake package#Build所有的包
rake包:clean#删除包产品
rake包:debian#创建一个Debian包ge
rake package:force#强制重新生成包文件
rake package:gem#构建gem文件passenger-2.2.4.gem
rake rdoc#构建rdoc HTML文件
rake rdoc:clobber#删除rdoc产品
rake rdoc:force#强制重建RDOC文件
rake sloccount#运行'sloccount'来查看多少代码Passe ...
rake测试#运行所有单元测试和集成测试
rake测试:cxx#运行Apache 2和Nginx的单元测试...
rake测试:集成#运行所有集成测试
rake测试:集成:apache2#运行Apache 2集成测试
rake测试:集成:nginx#运行Nginx集成测试
rake测试:oxt#运行OXT库的单元测试
rake测试:rcov #运行Ruby库的覆盖率测试
rake test:restart#运行重新启动'集成测试infinit ...
rake测试:ruby#运行Ruby库的单元测试
我的耙子文件包含:
#将您自己的任务添加到放在.rake结尾的lib /
#例如lib / tasks / capistrano.rake,它们将自动提供给Rake。
require(File.join(File.dirname(__ FILE__),'config','boot'))
require'rake'
require'rake / testtask'
require'rake / rdoctask'
require'tasks / rails'
如何添加gem和db rake任务?为什么他们缺少?
解决方案
rake -T $ c $的输出是什么C>?这应该列出所有可用的任务。在RoR应用程序中,
Rakefile
定义了您的任务。
您可以使用宝石更新
。
I am deploying my rails app to a linux server and i have some of the rake tasks missing inlcuding rake gems:install and rake db
I am running rails 2.3.4 from GEM.
Why is this?
How do I fix this? can I update somehow?
they are missing from rake -T list
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
my rake file contains this:
# 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'
How do I add the gems and db rake tasks? and why are they missing?
解决方案
What is the output of rake -T
? This should list all avaiable tasks. In a RoR application, the Rakefile
defines your tasks.
You can update gems using gem update
.
这篇关于如何构建任务“宝石:安装”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文