- 浏览: 441568 次
- 性别:
- 来自: 济南
文章分类
- 全部博客 (470)
- 前言 (1)
- 【sys】centos6.2 (51)
- 【sys】shell (8)
- 【sys】yum (1)
- software (6)
- 【tec】ruby (16)
- 【tec】rails (35)
- 【tec】rails路由 (2)
- 【tec】rails部署 (10)
- 【tec】rails优化 (6)
- 【tec】rails测试 (11)
- 【tec】php (45)
- 【tec】android (1)
- 【tec】ios (125)
- 【data】mysql (11)
- web (6)
- 【life】文学与提升 (2)
- life (36)
- 【life】怀念 (1)
- 【web】nginx (5)
- 【web】网络与安全 (4)
- 工作随笔 (1)
- 【software】svn (5)
- 【script】jquery (10)
- powerEdge (2)
- 杂七杂八 (5)
- 【sys】ubuntu (9)
- 【sys】windows (4)
- 【tec】java (1)
- 【tec】html (3)
- 【tec】c++ (38)
- 【tec】汇编 (1)
- 【data】数据库 (1)
- 【exchange 】学术交流 (1)
- 【tec】域名空间 (1)
- 【tec】编程先知 (1)
- 【tec】网站建设 (7)
- 【sys】mac (24)
- 【sys】seo (1)
- 【tec】wp (1)
- 【software】git (4)
最新评论
-
fireDragonpzy:
呵呵 貌似我网站上的有更新 你从那里看看 这个博客维护的不及时 ...
牛人经典语录 -
Peppermintchz:
还真这么2过啊!!好怀念啊
牛人经典语录 -
fireDragonpzy:
chenhong53 写道你好,我想问一下,能不能给一组精灵数 ...
cocos2d-x事件触发的优先级 -
chenhong53:
你好,我想问一下,能不能给一组精灵数组中的精灵添加触屏优先级, ...
cocos2d-x事件触发的优先级 -
fireDragonpzy:
dreamstar1020 写道谢谢庞兄指点,写的很详细,谢谢 ...
致:上海郑兄(虚拟主机-web服务器搭建)
Rails3里多了个Bundler工具。 它是一个Library管理工具,它提供了好的工具来管理你rails3项目依赖的gems。 $> bundle 这个命令会列出bundler提供给你的一些工具。 Tasks: bundle check # Checks if the dependencies listed in Gemfile are satisfied by currently installed gems bundle exec # Run the command in context of the bundle bundle help [TASK] # Describe available tasks or one specific task bundle init # Generates a Gemfile into the current working directory bundle install # Install the current environment to the system bundle lock # Locks the bundle to the current set of dependencies, including all child dependencies. bundle pack # Packs all the gems to vendor/cache bundle show # Shows all gems that are part of the bundle. bundle unlock # Unlock the bundle. This allows gem versions to be changed 你只要在你的Gemfile文件里添加你项目所需的gems就可以了。 $> bundle pack 这个命令可以打包你的gems到vendor/cache目录下。然后你把项目给别的开发者,别人就可以使用: $> bundle install 来安装项目依赖的gems了。 但是当你想把项目部署到生产环境的话,假如gems出现新版本,可能导致项目出现错误,这个时候,我们就需要锁定gem的版本。 $> bundle lock 这个命令会在rails的根目录下生成一个Gemfile.lock文件。类似于这样的: --- dependencies: - rails: = 3.0.0.beta - sqlite3-ruby: ">= 0" - pg: ">= 0" specs: - text-hyphen: version: 1.0.0 - builder: version: 2.1.2 - i18n: version: 0.3.3 当你在Gemfile文件里增加了一个新的gem,比如“hpricot”你运行: $> bundle check You changed your Gemfile after locking. Please relock using `bundle unlock` 想修改Gemfile必须先解锁Gemfile文件: $> bundle unlock 然后才能修改,修改完再锁定。 $> bundle install 这条命令会自动安装Gemfile里的所有gem。 然后我们再检测: $>bundle check The Gemfile's dependencies are satisfied 这就安全了。 然后我们可以打包了: $> bundle pack Copying .gem files into vendor/cache ... 打包完以后,锁定我们的gems: $> bundle lock 这下你就可以安全部署你的app了。 gem的写法可以具体参照:http://github.com/carlhuda/bundler Bundler官网:http://gembundler.com 本文出自 “{ :Alex Space => &..” 博客,请务必保留此出处http://blackanger.blog.51cto.com/140924/355320
发表评论
-
Ruby on Rails 性能优化工具
2012-05-15 08:43 669http://www.oschina.net/news/269 ... -
网页中 pdf查看
2012-05-06 16:24 814centos:仿百科--http://www.centos.b ... -
rails走验证和不走验证方法汇总
2012-05-06 16:13 692走validation的方法: create ... -
ruby调用win32ole打开文件
2012-05-03 20:58 797http://www.iteye.com/topic/1168 ... -
rails规范
2012-04-28 13:21 1027Ruby on rails 开发规范 (一 ... -
nginx + rails 防盗链
2012-04-16 11:12 665iteye:http://ywencn.iteye.com/b ... -
rails invalid date
2012-04-15 10:54 770迁移数据库或者是跑网站的时候出现:invalid date ... -
ror技巧--空判断
2012-03-30 13:23 817取某个对象的一个属性,先判断对象是否为nil,不是nil就返回 ... -
rails 数据库配置
2012-03-26 10:43 979驱动配置: Gemfile:gem 'mysql2', '0 ... -
spork+rspec-rails
2012-03-19 14:19 765http://www.rubyinside.com/how-t ... -
libmysqlclient.so.18错误
2012-03-17 13:08 2529设置libmysqlclient的软链,防止编译其它依赖Mys ... -
rails测试工具--rspec
2012-03-09 11:26 820http://article.yeeyan.org/view/ ... -
rails命令大全
2012-03-09 10:54 8721、创建一个Rails应用程序 $ rails app_na ... -
rails命名约定
2012-03-02 15:49 722rails命名约定 -
Rails中的link_to方法注意点
2012-02-21 19:53 692http://www.blogjava.net/pengpen ... -
ror异步传输
2012-02-21 19:34 759$.ajax({ type : "POST& ... -
rails base 之数据库---c u d
2012-02-20 14:07 782C 1 create @tempcourse = Tempco ... -
watir安装(含devkit安装)
2012-02-16 15:26 1051到 http://rubyinstaller.org/dow ... -
rails文件上传下载和删除
2012-02-16 14:07 847http://blog.csdn.net/xuchao111/ ... -
rails base 之 logger
2012-02-16 09:06 732http://www.cnblogs.com/orez88/a ...
相关推荐
npm-rails, 通过像DSL这样的Bundler支持 Rails的NPM npm Rails 项目的NPM支持。 它允许你使用bundler像DSL和rake任务来包括npm包。 这个基于Browserify的gem,用于捆绑包和解析依赖关系。安装将此行添加到你的应用...
Ruby on Rails教程样本应用程序 这是的示例应用程序 进行 。 执照 中的所有源代码都可以根据MIT许可和Beerware许可共同获得。 有关详细信息,请参见 。 入门 要开始使用该应用程序,请克隆存储库,然后安装所需的gem...
Rails3教程系列 DRY(Dont Repeat Yourself) DRY(Dont Repeat Yourself) DRY(Dont Repeat Yourself) DRY(Dont Repeat Yourself) DRY(Dont Repeat Yourself) DRY(Dont Repeat Yourself) DRY(Dont Repeat Yourself) DRY...
Windows7_Cygwin_Git_RVM_Ruby1.9.3_Rails3_MongoD B_Nginx_Unicorn_Rspec_Guard_Spork(2-Ruby on Rails3 安装配置
turbo-sprockets-rails3, 加速你的Rails 3资产 用于 Rails 3.2.x的涡轮链轮 通过只根据源文件的哈希来重新编译已经更改的资产,从而加快 Rails 3 rake assets:precompile的速度只编译一次以生成指纹和非打印的资产...
The Rails™ 3 Way is a comprehensive resource that digs into the new features in Rails 3 and perhaps more importantly, the rationale behind them. —Yehuda Katz, Rails Core The Bible for Ruby on ...
基于java的开发源码-Rails3消息队列系统 Sidekiq.zip 基于java的开发源码-Rails3消息队列系统 Sidekiq.zip 基于java的开发源码-Rails3消息队列系统 Sidekiq.zip 基于java的开发源码-Rails3消息队列系统 Sidekiq.zip ...
The Rails™ 3 Way is the only comprehensive, authoritative guide to delivering production-quality code with Rails 3. Pioneering Rails expert Obie Fernandez and a team of leading experts illuminate ...
Rails 3 in Action 2011年9月新鲜出炉,针对最新的Rails 3.1进行说明
Rails3消息队列系统 Sidekiq
Rails3的ActiveRecord 查询API.doc
3 rails # gem install rails -v=2.3.11 4 passenger # gem install passenger passenger-install-apache2-module 安装完成后按照提示将下面的内容添加到etc/httpd/httpd.conf LoadModule pa
Ruby+on+Rails+3+Tutorial.pdf 应用Rails进行敏捷Web开发第4版.pdf (Agile Web Development with Rails) Rails.Recipes.Rails.3.Edition.pdf
rails-assets, 在 Rails 中,资产管理的解决 Rails 资产 Bundler 到 Bower 代理本自述文件涉及项目的开发方面。 访问站点了解如何在你的应用程序中使用 Rails 资产。 插件开发设置git clone git@github.com:tenex/r
This pioneering book is the first resource that deep dives into the new Rails 3 APIs and shows you how use them to write better web applications and make your day-to-day work with Rails more ...
rails常用命令,例如新建rails项目,新建controller、model 等等
ruby on rails开发的初学者很适合的工具书,易上手,很实用,
rails3的英文文档
jquery-rails, 一个 gem,用于自动使用jQuery和 Rails 3 railsjQuery 面向 Rails 如此伟大。这里 gem 提供:jQuery 1.7.2jQuery UI 1.8.18 ( 仅适用于 javascript )jQuery UJS适配器assert_select_j