java基础之rails命令大全 <SPAN style="FONT-SIZE: x-small"> 创建一个Rails应用程序 </SPAN>
<SPAN style="FONT-SIZE: x-small"><SPAN> API Documentation</SPAN>
rake db:fixtures:load
# 载入fixtures到当前环境的数据库 # 载入指定的fixtures使用FIXTURES=x,y rake db:migrate # 迁移数据库通过在db/migrate目录下的脚本.可以指定版本号通过VERSION=x rake db:schema:dump # 创建一个db/schema.rb文件,通过AR能过够支持任何数据库去使用 rake db:schema:load # 载入一个schema.rb文件进数据库 rake db:sessions:clear # 清空sessions表 rake db:sessions:create # 用CGI::Session::ActiveRecordStore创建一个sessions表为用户 rake db:structure:dump # 导出数据库结构为一个SQL文件 rake db:test:clone # 重新创建一个测试数据库从当前环境数据库中 rake db:test:clone_structure # 重新创建测试数据库从开发模式数据库 rake db:test:prepare # 准备测试数据库并在入schema rake db:test:purge # 清空测试数据库 rake doc:app # 创建HTML文件的API Documentation rake doc:clobber_app # 删除Documentation rake doc:clobber_plugins # 删除 plugin Documentation rake doc:clobber_rails # 删除Documentation rake doc:plugins # 产生Documation为所有安装的plugins rake doc:rails # 创建HTML文件的API Documentation rake doc:reapp # 强制重新创建HTML文件的API Documentation rake doc:rerails # 强制重新创建HTML文件的API Documentation rake log:clear # 清空目录log/下的所有日志文件 rake rails:freeze:edge # Lock this application to latest Edge Rails. Lock a specific revision with REVISION=X rake rails:freeze:gems # Lock this application to the current gems (by unpacking them into vendor/rails) 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 scripts and public/javascripts from Rails 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 stats
|
|
||||
|
|
||||
|
|
|
||||
|
|
||||
|
|
|
||||
|
|
||||
|
|