WebFaction
Community site: login faq

Hi,

I'm encountering an issue with ree-1.8.7 patchlevel 248, the one installed with my app. It is raising and error from Net::HTTP. The error has been documented before, and addressed in later ruby versions, but I'm not sure how to re-configure my existing nginx/passenger/rails app with rvm on webfaction, nor how to just install a new ruby and use that with my existing app.

Any help would be appreciated. Thanks! -Trevor

asked 15 Sep '11, 19:19

wulftone
1259
accept rate: 0%


We are currently looking into creating an Nginx/Rails/Passenger stack with Ruby 1.9.2, but do not yet have an ETA for the release.

Building Ruby 1.9.2 from source and installing rails is relatively straightforward using Stephenson's ruby-build; here is an example:

APPNAME=ror

# set up ruby-build
cd $HOME/webapps/$APPNAME
git clone git://github.com/sstephenson/ruby-build.git  # i am at commit 2e8434892df97d464de7f80808a6384df06a5d45
cd ruby-build
export PREFIX=$HOME/webapps/$APPNAME
./install.sh
cd $HOME/webapps/$APPNAME/bin
mkdir -p $HOME/webapps/$APPNAME/tmp
export TMPDIR=$HOME/webapps/$APPNAME/tmp

# install ruby
./ruby-build 1.9.2-p290 $HOME/webapps/$APPNAME/ruby-1.9.2-p290    # using ruby 1.9.2-p290
# take a 20-minute break

# install rails # See http://docs.webfaction.com/software/rails.html#installing-gems
cd $HOME/webapps/$APPNAME/ruby-1.9.2-p290
mkdir -p gems
export GEM_HOME=$PWD/gems
export RUBYLIB=$PWD/lib
export PATH=$PWD/bin:$PATH
gem install rails

However we have not yet investigated integrating this into an existing passenger stack; if we create a new installer based on ruby 1.9.2, we would be bundling it into a new passenger stack to ensure compatibility.

permanent link

answered 15 Sep '11, 19:51

ryans ♦♦
5.0k93360
accept rate: 43%

edited 15 Sep '11, 23:13

klynton
1.6k1210

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:

×108
×81
×25
×25
×1

question asked: 15 Sep '11, 19:19

question was seen: 4,420 times

last updated: 15 Sep '11, 23:13

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 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