WebFaction
Community site: login faq

I have a Redmine 1.3.0 installation which I am trying to upgrade to 1.4.4.

I have followed the instructions here - http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade - by copying the relevant files into a new redmine-1.4.4 directory alongside the current installation. But when I get to the stage with rake generate_secret_token, this fails because rake is not on the path. If I run the installed version of rake directly, ie. ../bin/rake generate_secret_token, I get a more complex error:

/usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/rubygems.rb:861:in `report_activate_error': Could not find RubyGem rake (>= 0) (Gem::LoadError)
    from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/rubygems.rb:255:in `activate'
    from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/rubygems.rb:1204:in `gem'
    from ../bin/rake:18

So obviously I need to be doing something else with ruby/rake/etc to get this to work. What is this, and is it documented anywhere? Or is there some Webfaction-specific way I should be handling this upgrade?

asked 09 Oct '12, 10:17

Kylotan's gravatar image

Kylotan
15139
accept rate: 0%

edited 09 Oct '12, 16:25


You probably need to set your environment variables as described at the top of the WebFaction Rails documentation.

cd ~/webapps/your_app
export PATH=$PWD/bin:$PATH
export GEM_HOME=$PWD/gems
export RUBYLIB=$PWD/lib

Hope that helps!

permanent link

answered 09 Oct '12, 19:32

seanf's gravatar image

seanf ♦♦
11.8k21333
accept rate: 37%

excellent totally helped ! Thx !

(26 Jun '13, 19:13) mrossw mrossw's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×79
×46
×37
×6

question asked: 09 Oct '12, 10:17

question was seen: 3,062 times

last updated: 26 Jun '13, 19:13

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM