gemset

How do I upgrade a rails 3.2 app from ruby 1.9.3 to ruby 2.1.5 using rvm

血红的双手。 提交于 2019-12-24 10:30:13
问题 My Rails 3.2 / Ruby 1.9.3 app is using RVM. I want to upgrade to using ruby 2.1.5. I have used RVM to install Ruby 2.1.5 as well. So rvm list shows both 1.9.3 and 2.1.5 My project directory has a .rvmrc file specifying environment_id="ruby-1.9.3-p551@current_foogems" So I have a gemset named current_foogems How can I switch my project to use ruby 2.1.5? Do I copy the gemset? Create a new (empty) gemset? Given the jump in ruby version from 1.9.3 to 2.1.5, which may mean I should recompile gems

Where does bundler store gems?

☆樱花仙子☆ 提交于 2019-12-18 10:47:14
问题 I know that when using gem install , the gem will be stored under /home/username/.rvm/gems/, under which gemset the gem was installed. But if I use Bundler and specify the gem in the Gemfile, when I run bundle install, where will those gems be stored? And what if I already installed the gem using gem install , if I run bundle install, will it use the previous gem installed using gem install ? 回答1: It depends. In the usual development setup they are installed where they would be when you

Two versions of gems in production rails deployment

こ雲淡風輕ζ 提交于 2019-12-11 01:03:51
问题 I think i have some issues with my gemfile in production, as it differs from my development, which i believe is causing my deployment (Capistrano) to fail, well at bundle install time at least Development actionmailer (3.2.3) actionpack (3.2.3) activemodel (3.2.3) activerecord (3.2.3) activeresource (3.2.3) activesupport (3.2.3) arel (3.0.2) bcrypt-ruby (3.0.1) builder (3.0.4) bundler (1.3.4) capistrano (2.14.2, 2.12.0) climate_control (0.0.3) cocaine (0.5.1, 0.2.1) coffee-rails (3.2.2)

Using RVM Gemsets & Bundler & RubyMine

柔情痞子 提交于 2019-12-09 12:51:08
问题 I use RVM to manage Ruby versions. In my project I use Bundler to manage gems for the project. RVM also have gemsets. Gem in gemset don't have a connection with Bundler's gem. ← Is this correct? I came to this conclusion because gem files stored in different locations: RVM gemset: ~/.rvm/gems/ruby-2.0.0-p247@myApp Bundler: [my_app_dir]/vendor/bundle/gems So app uses Bundler gems, not RVM gemset gems. But when I add gem to my Gemfile, RubyMine IDE shows me warning, that this gem is not in RVM

Gemset: Rails is not currently installed on this system.

微笑、不失礼 提交于 2019-12-08 01:52:43
问题 macbook$ rvm gemset list_all gemsets for ruby-1.9.2-p320 (found in /Users/macbook/.rvm/gems/ruby-1.9.2-p320) global gemsets for ruby-1.9.3-p194 (found in /Users/macbook/.rvm/gems/ruby-1.9.3-p194) nice global macbook$ rvm use ruby-1.9.3-p194@nice Using /Users/macbook/.rvm/gems/ruby-1.9.3-p194@nice with gemset global macbook$ rails --version Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails You can then rerun your "rails" command.

Gemset: Rails is not currently installed on this system.

萝らか妹 提交于 2019-12-06 07:01:19
macbook$ rvm gemset list_all gemsets for ruby-1.9.2-p320 (found in /Users/macbook/.rvm/gems/ruby-1.9.2-p320) global gemsets for ruby-1.9.3-p194 (found in /Users/macbook/.rvm/gems/ruby-1.9.3-p194) nice global macbook$ rvm use ruby-1.9.3-p194@nice Using /Users/macbook/.rvm/gems/ruby-1.9.3-p194@nice with gemset global macbook$ rails --version Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails You can then rerun your "rails" command. macbook$ sudo gem install rails 1 gem successfully installed. macbook$ rails --version Rails is not

mac系统ruby on rails开发环境搭建

房东的猫 提交于 2019-12-03 18:31:46
mac系统ruby使用rvm隔离开发环境 安装rvm $ curl -L https://get.rvm.io | bash -s stable 这会在~/.profile添加如下代码 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 这时,每次打开shell会话,都有如下输出 $ which rvm /Users/apple/.rvm/bin/rvm 安装ruby指定的版本 $ rvm install 2.2.2 3.创建gemset $ rvm use 2.2.2 $ rvm gemset create name 4.切换gemset $ rvm use 2.2.2 $ rvm gemset use name 5.安装bundle $ gem install bundle 6.根据Gemfile创建项目的依赖包 $ cd path/to/project $ ./bin/bundle install 7.执行数据库迁移 $ cd path/to/project $ ./bin/rake db:migrate 8.启动服务 $ cd path/to/project $ ./bin/rails server 来源: oschina 链接: https://my.oschina.net/u

Create .ruby-version and .ruby-gemset with rvm

别说谁变了你拦得住时间么 提交于 2019-12-03 00:35:47
问题 Is there a way to create the associated .ruby-version and .ruby-gemset files when creating a new gemset? With older versions of rvm, one could do rvm --create --rvmrc 1.8.7@project , but that creates .rvmrc files. I thought I read somewhere we could use the --ruby-version command line switch, but I have been unsuccessful in doing so. 回答1: I recently had the same problem. rvm --help led me to: rvm --create --ruby-version ruby-1.9.3@my-gemset It created both .ruby-gemset and .ruby-version . 回答2

Create .ruby-version and .ruby-gemset with rvm

若如初见. 提交于 2019-12-02 14:12:03
Is there a way to create the associated .ruby-version and .ruby-gemset files when creating a new gemset? With older versions of rvm, one could do rvm --create --rvmrc 1.8.7@project , but that creates .rvmrc files. I thought I read somewhere we could use the --ruby-version command line switch, but I have been unsuccessful in doing so. cappie013 I recently had the same problem. rvm --help led me to: rvm --create --ruby-version ruby-1.9.3@my-gemset It created both .ruby-gemset and .ruby-version . Bob Roberts According to the official RVM docs you can use this: echo 1.9.3 > .ruby-version Or you

Where does bundler store gems?

蓝咒 提交于 2019-11-29 23:29:46
I know that when using gem install , the gem will be stored under /home/username/.rvm/gems/, under which gemset the gem was installed. But if I use Bundler and specify the gem in the Gemfile, when I run bundle install, where will those gems be stored? And what if I already installed the gem using gem install , if I run bundle install, will it use the previous gem installed using gem install ? It depends. In the usual development setup they are installed where they would be when you install a gem "normally" (by running gem install foo ) and bundler won't reinstall gems that are already there.