Tag: rvm

Update of blog site via cron does not work

Currently i have blog site which works with Octopress in relationship with Git but currently facing a problm that i can’t update the site automatically via a cron triggered script. I’m using a script (update.sh) with the following contents: #!/bin/bash -x export PATH=/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin/:/usr/local/rvm/bin/rvm:$PATH cd /usr/local/repositories cd supose.git git fetch -q –all cd /usr/local/vhost/octopress git pull […]

Run git commands in shell script without change directory to repo

I’m writing a shell script (zsh) that will run git commands for a set of directories. Some of these are projects with .rvmrc files which can take a while to run. When I cd into the directory to run a command, it activates the .rvmrc which really slows down the script quite a bit. Example […]

RVM install 1.9.2-head ERROR

I am using RVM to maintain ROR enviroment: But when I am trying to install ruby-head , it gives me error messages like this: shanan@shanan-ThinkPad:~$ rvm install 1.9.2-head /home/shanan/.rvm/rubies/ruby-1.9.2-head, this may take a while depending on your cpu(s)… ruby-1.9.2-head – #fetching Cloning from https://github.com/ruby/ruby.git, this may take a while depending on your connection… Cloning into […]

Trying to add .rvmrc to ignore, its not working

So I modified my .rvmrc to what I need on my server, commit to git and pushed to origin. Then I added .rvmrc to my .gitignore, but when I do a git status it shows the file has been modified. I’m trying to fix it so it has my local settings now since the master […]

Learning to learn: Rails

It’s been 20 years since I learned any coding and things are very different now. After playing with cakephp and yii, I decided on ROR. I’m having a blast! My question is not so much about ROR, but the best way to learn anything. I started learning ROR and found out about version control and […]

Ruby version change on heroku push

Ruby version is changed while pushing into the heroku. Ruby version change detected. Clearing bundler cache. Old: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] New: ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux] now heroku run ‘ruby -v’ returning ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux]. But ruby -v still returning ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]. Here is […]

Using rvm and git, can I associate a ruby version with each branch?

Is there a way to associate a specific ruby version with a specific branch ? I would like to have: git checkout branch-a #ruby -v = 1.8.7 git checkout branch-b #ruby -v = 1.9.2 Thanks

Gems not found by 'gem list' when using 'bundle install' for git gems with RVM

I’m currently trying to run ‘bundle install’ to install a git based gem using a Gemfile and consequently use ruby/ other ruby commands without bundler with the latest version of RVM (1.14.3). I believe the cause of the issue is that bundler is installing the git gem into .rvm/gems/ruby-1.9.3-p194@something/bundler/gems while all other gems are installed […]

RVM “ERROR: Unable to checkout branch .” single-user

I’m having trouble installing RVM on a new Debian 6 VirtualBox VM. I’ve installed all the needed packages and downloaded the install script fine using (curl -s https://rvm.beginrescueend.com/install/rvm) > rvm , but when running it as a single user bash rvm I get the following error message: ERROR: Unable to checkout branch . Installation stops […]

Should I commit .rvmrc files in a project?

This question already has an answer here: Do you check in your rvmrc file? 2 answers

Git Baby is a git and github fan, let's start git clone.