1.4 Scripts
script/about
# 输出当前环境信息
script/breakpointer
# 启动断点server
script/console
# 启动交换式的Rails控制台
script/destroy
# 删除通过generators创建的文件
script/generate
# -> generators
script/plugin
# -> Plugins
script/runner
# 执行一个任务在rails上下文中
script/server
# 启动开发模式服务器http://localhost:3000
//以下几个不知道怎么去使用
script/performance/profiler
script/performance/benchmarker
script/process/reaper
script/process/spawner
1.5 Generators
ruby script/generate model ModelName
ruby script/generate controller ListController show edit
ruby script/generate scaffold ModelName ControllerName
ruby script/generate migration AddNewTable
ruby script/generate plugin PluginName
ruby script/generate mailer Notification lost_password signup
ruby script/generate web_service ServiceName api_one api_two
ruby script/generate integration_test TestName
ruby script/generate session_migration
可选项:
-p, --pretend Run but do not make any changes.
-f, --force Overwrite files that already exist.
-s, --skip Skip files that already exist.
-q, --quiet Suppress normal output.
-t, --backtrace Debugging: show backtrace on errors.
-h, --help Show this help message.
-c, --svn Modify files with subversion. (Note: svn must be in path)
1.6 Plugins
script/plugin discover
# discover plugin repositories
script/plugin list
# list all available plugins
script/plugin install where
# install the a€wherea€? plugin
script/plugin install -x where
# install where plugin as SVN external
script/plugin install http://invisible.ch/projects/plugins/where
script/plugin update
# update installed plugins
script/plugin source
# add a source repository
script/plugin unsource
# removes a source repository
script/plugin sources
# lists source repositories
the end
分享到:
相关推荐
搭建完完ruby on rails环境之后发现每次运行命令总会有这样一个Warning:DL is deprecated, please use Fiddle,例如: 对运行什么的没有影响,只是Dl过时了,可是Ruby大大不管这个问题,可是看着就烦呐~~ 解决方法...
使用 Vagrant 快速设置 Ruby on Rails 环境。 用法 安装 >= 1.2。 vagrant plugin install vagrant-berkshelf git clone git@github.com:1000k/rails_sandbox.git cp Vagrantfile.default Vagrantfile 编辑 ...
Ruby 3.0 Node.js 14或更高版本 配置[v0.25] 使用模板,并确保取消选中“包括所有分支” 将存储库克隆到本地计算机 使用git flow init所有本地计算机中的git-flow 集生产分公司: main 设置开发部门: development ...
这是一个基本的Ruby on Rails应用程序,用于对Rails应用程序中常见的任务进行练习和测试,以供开发人员参考。 该项目是部分完成的应用程序,其中包含以下记录的一些挑战,供开发人员实施。 先决条件 该项目假定您...
它可以快速生成Node.js和Ruby on Rails应用程序,并自动执行许多常见的开发任务。 特征 Shopify应用程序CLI通过以下方式帮助您的应用程序开发过程: 在创建一个应用 填充应用程序的测试数据,包括产品,客户和草拟...
一个项目模板,用于为AWS Lambda快速创建一个新的Rails应用程序。 细节: Ruby 2.7运行时上的Railsv6.x。 集成JavaScript开发。 使用LibSass&Webpacker编译CSS / JS资产。 没有ActiveRecord。 阅读我们的指南...
提交该存储库仅供参考,并且代码已大量重定基础,这将使提交变得不可能干净,但在开发新网站时是有用的参考。 使用以下提交消息符号: +添加^变化-删除项目结构Ansible Ansible脚本为服务器配置了在Dokku上运行Rails...
" description " : " Search for experts based on headings on their personal website " , " version " : " 0.1.0 " } 部署方式 要从本地计算机部署到生产环境,请从项目根目录运行以下命令: git push heroku ...
1.9.3 Starter Toolkit for DB2 on Rails.............................................................................17 1.9.4 Web 2.0 Starter Toolkit for DB2 ..............................................
1.9.3 Starter Toolkit for DB2 on Rails.............................................................................17 1.9.4 Web 2.0 Starter Toolkit for DB2 ..............................................