1. Installing RVM
Finally put this lines in your .bash_profile or .bashrc:
Restart your terminal, RVM should be working by now.
2. Installing ruby into your RVM
3. Setting up RVM to use your specific ruby version
4. Installing rails 2 and rails 3 inside different gemsets
Rails 2:
Rails 3:
5. Switching between different rails versions
Switching to rails 2:
Switching to rails 3:
$ sudo gem install rvm $ rvm-install
Finally put this lines in your .bash_profile or .bashrc:
if <a href="/pages/s-home-rvm-scripts-rvm?create=true&title= -s $HOME/.rvm/scripts/rvm " class="missing_page"> -s $HOME/.rvm/scripts/rvm </a> ; then source $HOME/.rvm/scripts/rvm fi
Restart your terminal, RVM should be working by now.
2. Installing ruby into your RVM
$ rvm install 1.8.7
3. Setting up RVM to use your specific ruby version
$ rvm use 1.8.7 --default
4. Installing rails 2 and rails 3 inside different gemsets
Rails 2:
$ rvm gemset create rails2 $ rvm use 1.8.7@rails2 --default $ gem install rails
Rails 3:
$ rvm gemset create rails3 $rvm use 1.8.7@rails3 --default $ gem install rails
5. Switching between different rails versions
Switching to rails 2:
$ rvm use 1.8.7@rails2 $ rails -v Rails 2.3.5
Switching to rails 3:
$ rvm use 1.8.7@rails3 $ rails -v Rails 3.0.0
发表评论
-
使用 Capistrano 对rails app进行快速部署
2011-02-23 15:05 1759仅转载了,还没有用过,如果有问题可留言,大家一起讨论 在进行 ... -
ruby进行web serveice的方法
2011-02-15 14:37 835require 'soap/wsdlDriver' #url ... -
友好的登录系统
2011-01-28 10:54 672友好的登录系统 按照目前的代码,如果管理员尝试在未登录的状态下 ... -
第三版
2011-01-27 15:36 0view格式化价格 <%= number_to_curr ... -
用户操作数据库记录
2011-01-25 15:16 849今天我们看看怎样在数据库记录用户操作 db/migrate/0 ... -
Ruby中 respond_to? 和 send 的用法
2011-01-25 14:24 1239obj = Object.new if obj ... -
rails 路由
2011-01-25 14:17 11504 正则路由 Rails支持 ... -
rails 验证自定义方法
2011-01-25 11:37 1565可以自定义validate(), 这个方法在每次保存数据时都会 ... -
flash-notice自动消失
2011-01-25 11:12 1366flash 提示的自动消失: <body onloa ... -
密码加密和解密
2011-01-25 11:11 1192two way crypt: #http://crypt. ... -
开发环境页面直接调试
2011-01-25 11:06 666#首先,在layout里边的合适地方添加debug,并且使 ... -
对静态页面进行缓存
2011-01-24 14:35 928对于静态站点我们可以利用Rails的cache来管理,如在co ... -
rails要理解
2011-01-18 10:57 601清单3 module Dictionary ... -
rails 加载不同插件设置
2010-12-31 14:49 374config.plugins = [ :all ] co ... -
参考rails 下拉
2010-12-31 14:47 617对于多数的model的select列表,我都会用model属性 ... -
自定义form提示
2010-12-31 10:53 678自定义form错误提示 application_contro ... -
提高rails开发模式下静态页加载速度
2010-12-31 10:44 873http://github.com/thedarkone/ra ... -
rails 连接多个数据库
2010-12-30 10:31 748首先在database.yml中加入以下代码,其中cg_clo ... -
瘦controller,富model
2010-12-28 14:02 735----先看这么一段rhtml代码:渲染模板中加入了这么多的逻 ... -
rake 命令一览
2010-12-28 11:21 985rake db:abort_if_pending_migr ...
相关推荐
独奏在Cloud 9上部署-AWS首先,在Cloud 9(Ubuntu Image)上设置环境设置Cloud 9实例:1.将RVM更新到最新的稳定版本rvm get headrvm reloadrvm get stable2.安装Ruby 3.0.0 rvm install ruby-3.0.03.将Ruby 3.0.0...
为了更好的展示,我使用Ruby 2.2.0和Rails 4.1.1 在终端运行: $ rvm use 2.2.0 $ rails new && cd docker-test 创建一个基本的控制器: $ rails g controller welcome index ……,然后编辑 routes.rb ,...
厨师 Rails 助手这是我在部署自己的 Ruby on Rails 应用程序时使用的一组定义。 在定义的注释中查找文档。通用约定RVM 在系统范围内使用和安装。 对于名为foo的应用程序: 部署路径: /home/foo/apps/foo 里面是类似...
您可能需要按照以下步骤将 ruby on rails 应用程序部署到 Ubuntu + Nginx + Unicorn 环境。 在这里,我将 RVM 安装为多用户模式。 我使用www-data用户来运行我的应用程序(这是 Ubuntu 上 Apache 和 Nginx 的...
它是由Ruby on Rails中最常见的宝石和干净的解决方案创建的。 无需复杂的外部库。 它可以节省时间并有助于快速开始与您的社区对话。 是的,我同意,它需要一些修饰。 现场演示为什么必须尝试QARoR? 因为它是: 以...
自述文件 实时应用 要查看在Heroku上部署的该Web应用程序的实时版本,请访问: 一般的 构建环境:macOS Big Sur ... 建议使用RVM(Ruby版本管理器)在计算机上管理Ruby的多个版本并简化安装过程。 Windows用户注意事
Linode Rails 就绪堆栈脚本部署配置 在哪里可以找到它 您可以在 Linode 库上找到此脚本的最新版本 安装和配置: RVM 系统范围 Ruby [使用 RVM 的任何版本] MySQL Phusion 乘客 NGINX 吉特 部署用户 图像魔术师 ...
部署说明 (Ubuntu 14.04):使用 Ruby 2.0.0p481(rbenv 而不是 rvm)、Rails 4.1.2、MongoDB 2.6 ~~部署时: 需要将bundle exec whenever --update-crontab map_server作业添加到 crontab( bundle exec whenever...
RVM /稳定的Ruby版本 Yeoman,Gulp和Bower npm install -g yo gulp bower 引导API 我们将为此应用程序使用 ,因为我们将Rails用作RESTFul,JSON API。 由于我们使用Angular作为客户端应用程序,因此默认情况下不...
堆: Ruby 2.2.0 Rails 4.2.0 前端的React / Flux Heroku部署我们使用Ruby 2.2.0。 我们还使用RVM管理Ruby环境。 强烈建议这样做。 安装RVM,然后运行以下命令来设置您的ruby环境: rvm install 2.2.0rvm --ruby-...
capistrano3-git-push 这个Capistrano(v3)任务要求提交消息,然后使 git add -A git commit -m '#{message}' git push ...看一下我的 (它可以安装Nginx,PostgreSQL,Redis,RVM,Rails,Bundler,Ima
门户活动创作、部署和报告系统 设置 先决条件 使用 git、ruby 或 jruby,以及 rubgems、wget Gems:capistrano、capistrano-ext、ruby-debug(奇怪的是,haml也是,部署时……) 待办事项:了解为什么运行 ...
介绍Cloudsdale 使用Ruby on Rails构建,由Redis 、 MongoDB 、 MemCached 、 RabbitMQ和Sidekiq (Celluloid) 支持。 Cloudsdale 在 ruby MRI 版本2.0.0上开发和测试。服务器操作以下示例要求: 您可以使用 bash...
为 Ruby Mad Science 部署 Repo 想要围绕您的 Rails 应用程序构建自定义 VM? 想要使用所有正确的开源工具,如 Chef、Capistrano、Librarian、NGinX 和 RVM? 想要在本地测试它,然后将完全相同的配置推送到真实主机...
rvm Ruby2.5.1 导轨5.2 PostgreSQL 10.x 开始吧 bundle install rails db:create db:create rails db:create db:migrate rails db:create db:setup rails s ./bin/webpack-dev-server 部署方式 对于无痛部署,您...
先决条件RVM /稳定的Ruby版本Yeoman,Gulp和Bower npm install -g yo gulp bower引导API 我们将为此应用程序使用 ,因为我们将Rails用作RESTFul,JSON API。 由于我们使用Angular作为客户端应用程序,因此默认情况下...
您可能要讲的内容: Ruby版本Ruby: 2.6.3创建和使用gemset: rvm use 2.6.3@codecraft [--create] Rails: 5.2.3 系统依赖MySQL 配置cp config/samples/local_env.yml configcp config/samples/storage.yml config...
该应用程序是用Ruby on Rails编写的,并已部署在Heroku上。 设置 您将需要一个Ruby环境来运行Rails。 首先要做的是: $ rvm use . $ bundle install 然后,您需要创建数据库结构: $ rake db:migrate 或者,您...
在上部署 环境 要设置您的环境以在Mac或Linux上本地运行此环境,请完成以下步骤: 安装rvm 下载并使用ruby 2.6.1 克隆此存储库并cd到其中 运行bundle install --without production 要在本地启动服务器,请运行rails...
//keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \curl -L https://get.rvm.io | bash -s stable --ruby 开始一个新的外壳rvm gemset use global gem install bundler gem install rails ...