- [root@ford depot]# rake --task(或者rake -T)
- (in /home/xxxx/rails/depot)
- rake db:abort_if_pending_migrations # Raises an error if there are pending migrations
- rake db:charset # Retrieves the charset for the current environment's database
- rake db:collation # Retrieves the collation for the current environment's database
- rake db:create # Create the database defined in config/database.yml for the current RAILS_ENV
- rake db:create:all # Create all the local databases defined in config/database.yml
- rake db:drop # Drops the database for the current RAILS_ENV
- rake db:drop:all # Drops all the local databases defined in config/database.yml
- rake db:fixtures:identify # Search for a fixture given a LABEL or ID.
- rake db:fixtures:load # Load fixtures into the current environment's database.
- rake db:migrate # Migrate the
database through scripts in db/migrate and update db/schema.rb by
invoking db:schema:dump. Target specific version w...
- rake db:migrate:down # Runs the "down" for a given migration VERSION.
- rake db:migrate:redo # Rollbacks the database one migration and re migrate up.
- rake db:migrate:reset # Resets your database using your migrations for the current environment
- rake db:migrate:up # Runs the "up" for a given migration VERSION.
- rake db:reset # Drops and recreates
the database from db/schema.rb for the current environment and loads
the seeds.
- rake db:rollback # Rolls the schema back to the previous version.
- rake db:schema:dump # Create a db/schema.rb file that can be portably used against any DB supported by AR
- rake db:schema:load # Load a schema.rb file into the database
- rake db:seed # Load the seed data from db/seeds.rb
- rake db:sessions:clear # Clear the sessions table
- rake db:sessions:create # Creates a sessions migration for use with ActiveRecord::SessionStore
- rake db:setup # Create the database, load the schema, and initialize with the seed data
- rake db:structure:dump # Dump the database structure to a SQL file
- rake db:test:clone # Recreate the test database from the current environment's database schema
- rake db:test:clone_structure # Recreate the test databases from the development structure
- rake db:test:load # Recreate the test database from the current schema.rb
- rake db:test:prepare # Check for pending migrations and load the test schema
- rake db:test:purge # Empty the test database
- rake db:version # Retrieves the current schema version number
- rake doc:app # Build the RDOC HTML Files
- rake doc:clobber_app # Remove rdoc products
- rake doc:clobber_plugins # Remove plugin documentation
- rake doc:clobber_rails # Remove rdoc products
- rake doc:guides # Generate Rails guides
- rake doc:plugins # Generate documentation for all installed plugins
- rake doc:rails # Build the RDOC HTML Files
- rake doc:reapp # Force a rebuild of the RDOC files
- rake doc:rerails # Force a rebuild of the RDOC files
- rake gems # List the gems that this rails application depends on
- rake gems:build # Build any native extensions for unpacked gems
- rake gems:build:force # Force the build of all gems
- rake gems:install # Installs all required gems.
- rake gems:refresh_specs # Regenerate gem specifications in correct format.
- rake gems:unpack # Unpacks all required gems into vendor/gems.
- rake gems:unpack:dependencies # Unpacks all required gems and their dependencies into vendor/gems.
- rake log:clear # Truncates all *.log files in log/ to zero bytes
- rake middleware # Prints out your Rack middleware stack
- rake notes # Enumerate all annotations
- rake notes:custom # Enumerate a custom annotation, specify with ANNOTATION=WTFHAX
- rake notes:fixme # Enumerate all FIXME annotations
- rake notes:optimize # Enumerate all OPTIMIZE annotations
- rake notes:todo # Enumerate all TODO annotations
- rake rails:freeze:edge # Lock to latest Edge Rails, for a specific release use RELEASE=1.2.0
- rake rails:freeze:gems # Lock this application to the current gems (by unpacking them into vendor/rails)
- rake rails:template # Applies the template supplied by LOCATION=/path/to/template
- rake rails:unfreeze # Unlock this
application from freeze of gems or edge and return to a fluid use of
system gems
- rake rails:update # Update both configs, scripts and public/javascripts from Rails
- rake rails:update:application_controller # Rename application.rb to application_controller.rb
- rake rails:update:configs # Update config/boot.rb from your current rails install
- rake rails:update:generate_dispatchers # Generate dispatcher files in RAILS_ROOT/public
- rake rails:update:javascripts # Update your javascripts from your current rails install
- rake rails:update:scripts # Add new scripts to the application script/ directory
- rake routes # Print out all defined routes in match order, with names.
- rake secret # Generate a crytographically secure secret key.
- rake stats # Report code statistics (KLOCs, etc) from the application
- rake test # Run all unit, functional and integration tests
- rake test:benchmark # Run tests for benchmarkdb:test:prepare / Benchmark the performance tests
- rake test:functionals # Run tests for
functionalsdb:test:prepare / Run the functional tests in test/functional
- rake test:integration # Run tests for
integrationdb:test:prepare / Run the integration tests in
test/integration
- rake test:plugins # Run tests for
pluginsenvironment / Run the plugin tests in vendor/plugins/*/**/test
(or specify with PLUGIN=name)
- rake test:profile # Run tests for profiledb:test:prepare / Profile the performance tests
- rake test:recent # Run tests for recentdb:test:prepare / Test recent changes
- rake test:uncommitted # Run tests for
uncommitteddb:test:prepare / Test changes since last checkin (only
Subversion and Git)
- rake test:units # Run tests for unitsdb:test:prepare / Run the unit tests in test/unit
- rake time:zones:all # Displays names of
all time zones recognized by the Rails TimeZone class, grouped by
offset.
- rake time:zones:local # Displays names of
time zones recognized by the Rails TimeZone class with the same offset
as the system local time
- rake time:zones:us # Displays names of
US time zones recognized by the Rails TimeZone class, grouped by offset.
- rake tmp:cache:clear # Clears all files and directories in tmp/cache
- rake tmp:clear # Clear session, cache, and socket files from tmp/
- rake tmp:create # Creates tmp directories for sessions, cache, sockets, and pids
- rake tmp:pids:clear # Clears all files in tmp/pids
- rake tmp:sessions:clear # Clears all files in tmp/sessions
- rake tmp:sockets:clear # Clears all files in tmp/sockets
(借阅)
推荐url :http://leeyouser.iteye.com/blog/702601
分享到:
相关推荐
使用简单的 rake 命令整理您的桌面、下载和其他杂乱文件夹。 简单有效。 用法 在开始使用 Mess Organizer 之前,您需要在您的操作系统上安装和 。 如果你已经安装了 Rake gem,只需将这个 repo 克隆到你想要组织的...
Xcode 工程添加文件 ...使用代码为 Xcode 工程添加文件可以通过 Ruby generator.rb 脚本、CocoaPods、Xcode 的 GUI 界面和 rake 命令等多种方法来实现。这些方法可以满足不同项目的需求,并提高开发效率。
它要求Rails 2.3以上版本,并通过rake命令安装。 3. Tog_core:作为Tog的核心模块,它包含基础控制器、仪表盘、通用社交特性声明、滥用管理、配置管理和用户界面助手。在安装Tog时会自动包含。 4. Tog_email:这是...
3. 在命令行模式下运行gem install rake命令将在线安装Rake。 4. 将 Rails 2.2.2 的安装包解压到某个临时目录下,在命令行模式下切换当前目录为该临时目录,运行gem install rails -v=2.2.2 --include-dependencies...
在这个例子中,`:default`是任务名,`do...end`之间的代码块是任务体,当执行`rake`命令时,如果没有指定任务,就会默认执行`:default`任务。 ### 3. 任务依赖 Rake支持任务间的依赖关系,例如: ```ruby task :...
通过运行`gem install rake-0.8.7.gem`命令,开发者可以将这个特定版本的rake添加到他们的开发环境中。而`rake1-0.8.7.tgz`则是一个压缩包,可能包含了源代码和其他相关文件,用于那些希望从源码编译安装的用户。 ...
安装这个版本的rake,开发者通常需要解压文件,然后使用gem(Ruby的包管理器)进行安装,命令可能类似于`gem install rake-0.8.7.gem`。确保安装正确后,就可以在Rails环境中使用rake来执行各种项目任务。 值得注意...
它允许您使用 bundler 提供的相同友好的 rake 命令来发布 gems。 rake release保留了相同的构建/标记/推送功能,除了它现在被推送到您的私有 gem 存储库。 耶! 用法! 在您的宝石规格中 gem . add_development_...
脚本使用gitlab-rake命令执行备份操作,并通过find命令查找并删除超过两天前创建的备份文件。此外,脚本还使用scp命令将备份文件传输到远程服务器,保障数据的异地备份。 在远程服务器上,作者也提供了autoDel.sh...
安装`RAKE`库的命令为: ```bash pip install git+https://github.com/aneesha/RAKE.git ``` 使用时,首先需要导入`RAKE`模块,然后创建`RAKE`对象,加载停用词列表,接着对文本进行处理并提取关键词: ```python ...
Rails Reseed 在开发中的 rails 应用程序上工作时,您可能希望重新开始...没什么可做的,安装 gem 然后运行 Rake -T 找到闪亮的新 rake 命令。 要运行,只需输入rake db:reseed 测验 要测试 gem,请运行bundle exe
用户还可以通过Rake命令来新建文章。文章具有固定的链接形式,可以进行草稿的编辑与管理。文章可以被分类、标签化,甚至可以添加评论系统,如Disqus或多说等,以丰富网站互动性。 Jekyll的插件系统非常丰富,支持...
添加 Rake 命令以转储和恢复应用程序的数据库。 委托常规转储实用程序,例如mysqldump和pg_dump 。 与它们不同的是,您不必记住任何正确的语法。 您也不必指定连接参数; 如果应用程序工作,转储程序也工作。 ...
Heroku Buildpack:SmartMigrate更新出于某种原因,我无法让 heroku 编译器 dyno 识别 bundle 或 rake 命令。 作为一种解决方法,如果检测到更改,此 buildpack 仅显示一条消息,要求用户自己运行迁移。 简单的 ...
MATLAB 语言基础和 CDMA-RAKE 接收机仿真 本文档主要讲述了 MATLAB 语言基础和基于 MATLAB 的 CDMA-RAKE 接收机仿真。下面是相关知识点的详细解释: 1. MATLAB 语言基础 MATLAB 是一种高级的技术计算语言和 ...
### Ruby 命令集合(一些有用的命令) 在Ruby编程语言的世界里,Rails是一个非常流行的Web应用框架。本文将详细介绍一些常用的Rails命令及其用途,帮助开发者更好地理解和掌握Rails的使用方法。 #### 1. 创建一个...
来自practical rails social networking sites上的第二章的实例,应用了数据导入,导入数据到mysql后就可以使用,命令: rake db:migrate(进入文件夹"railscoder")
Special Delivery 允许您使用 Bundler 的 rake 命令将 gem 发布到您的 geminabox 服务器。 它的灵感来自 Josh Krueger 的 gem。 安装 打开您的 gemspec 并添加special_delivery作为开发依赖项: Gem :: ...
运行以下rake命令,将所有需要的文件复制到公用文件夹中: rake radiant:extensions:ck_editor_filter:update 就是这样! 现在,页面编辑屏幕上的过滤器下拉列表中应该具有“ CKEditor”。 选择此选项将生成...