rvm

Disable RVM or use Ruby which was installed without RVM?

落爺英雄遲暮 提交于 2020-01-30 14:19:49
问题 For rails application I had installed Ruby 1.8.7 and Rails 2.3.11. And it was working fine. After that I have installed RVM and REE. So while running ruby script/server it's using REE. But now I want to use the older Ruby 1.8.7 which was installed without RVM. Any Solution! 回答1: Try rvm use system to use the system ruby which is not managed via. rvm. 回答2: This works! This means to set the "system" ruby as default, you reset RVM's defaults as follows. rvm reset NOTE: it works only when there

How do I configure capistrano to use my rvm version of Ruby

橙三吉。 提交于 2020-01-27 04:50:46
问题 Does anybody know how I can tell capistrano to use my default rvm version of ruby for on the server I am pushing to. It insists on using the system version. Is it even possible? 回答1: The rvm-capistrano gem is the best way to go. Link to the official detailed usage of that gem. From that I am guessing this will get the local version of Ruby: set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"") # Read from local system 回答2: You have two options: Enable .ssh environment variables using the

Capistrano + RVM + Rake task

南楼画角 提交于 2020-01-25 08:29:11
问题 I have a project which uses rvm ruby 1.9.2 (set in .rvmrc in project dir). deploying with capistrano. has a rake task I want to run remotely from my local machine by capistrano. I've created a .sh file to run my task: cd /var/www/pluslook/current /home/kirill/.rvm/scripts/rvm use 1.9.2@pluslook /home/kirill/.rvm/gems/ruby-1.9.2-p180@pluslook/bin/rake parse:feed RAILS_ENV="production" --trace But when I'm trying to run this task i have an error: Using /home/kirill/.rvm/gems/ruby-1.9.2-p180

How do you run the rails command from a cocoa application?

纵饮孤独 提交于 2020-01-23 11:20:06
问题 I've been stuck on this one for a while. I'm trying to run a rails shell command from my cocoa application to create a news rails app. When I run ~/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/bin/rails new projectname I'm able to create a new project. But if I run something like this NSString *path = @"~/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/bin/rails"; NSString *script = [NSString stringWithFormat:@"%@ new ~/Desktop/testapp", path]; system([script UTF8String]); or this - (IBAction

RVM isn't recognized until I run “source ~/.profile” in terminal

霸气de小男生 提交于 2020-01-22 16:47:28
问题 sergio@sergio-VirtualBox:~/code$ rails -v The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install rails sergio@sergio-VirtualBox:~/code$ source ~/.profile sergio@sergio-VirtualBox:~/code$ rails -v Rails 3.2.1 Any ideas why the command doesn't work until I run "source ~/.profile"? I would like to not have to do this every time I run my machine or open a new terminal window. 回答1: RVM provides quite good description https://rvm.io/support/faq/#shell

How do I set the shell to bash for run in Capistrano?

谁说胖子不能爱 提交于 2020-01-22 13:31:50
问题 How can I set the shell in the Capistrano run command to use bash instead of sh? I am trying to install RVM and I need to execute the command: run "bash < <(curl -L http://bit.ly/rvm-install-system-wide)" as in: task :install_rvm, :roles => :server do apps = %w(bison openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev sqlite3 libsqlite3-0 libxml2-dev libxslt-dev autoconf subversion libcurl4-openssl-dev) apt.install( {:base => apps}, :stable ) run "bash < <(curl -L

How do I set the shell to bash for run in Capistrano?

限于喜欢 提交于 2020-01-22 13:31:31
问题 How can I set the shell in the Capistrano run command to use bash instead of sh? I am trying to install RVM and I need to execute the command: run "bash < <(curl -L http://bit.ly/rvm-install-system-wide)" as in: task :install_rvm, :roles => :server do apps = %w(bison openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev sqlite3 libsqlite3-0 libxml2-dev libxslt-dev autoconf subversion libcurl4-openssl-dev) apt.install( {:base => apps}, :stable ) run "bash < <(curl -L

RVM isnt setting environment with cron

最后都变了- 提交于 2020-01-21 09:19:50
问题 I'm having a rough time executing script/runner with a cron and RVM. I believe the issues lie with the rvm environment not being set before the runner is executed. currently im throwing the error /bin/sh: 1.sql: command not found which is more than i've gotten earlier, so i guess that's good. I've read this thread Need to set up rvm environment prior to every cron job but im still not really getting it. Part of the problem i think is the error reporting. this is my runner thus far. */1 * * *

Problem installing Ruby 1.9.2 on Mac OS Lion

元气小坏坏 提交于 2020-01-21 07:05:05
问题 I am running Lion, utilizing Xcode 4, have RVM and homebrew installed but am only able to run ruby 1.8.7 spurvis:~ rogue$ ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0] spurvis:~ rogue$ I've read through several threads related to this topic but nothing seems to work for my problem: spurvis:~ rogue$ rvm install 1.9.2 Installing Ruby from source to: /Users/rogue/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)... ruby-1.9.2-p290 - #fetching

installing gems using rvm

喜你入骨 提交于 2020-01-20 17:23:29
问题 When trying to install gems using rvm i get this error $ rvm gem install sproutcore ERROR: While executing gem ... (Errno::EACCES) Permission denied - /home/tee/.gem/specs but it says on the rvm site that you should not use sudo so I'm not sure whats wrong with my setup when i type $GEM_HOME it shows that the directory is pointing to the rvm dir $GEM_HOME bash: /home/tee/.rvm/gems/ruby-1.8.7-p302: is a directory Any ideas what I'm doing wrong? 回答1: There's a permission issue with your .gem