Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Using Ruby Enterprise for Rails script/console
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Trevor Turk  
View profile  
 More options Sep 3 2009, 7:55 pm
From: Trevor Turk <trevort...@gmail.com>
Date: Thu, 3 Sep 2009 16:55:08 -0700 (PDT)
Local: Thurs, Sep 3 2009 7:55 pm
Subject: Using Ruby Enterprise for Rails script/console
I was scratching my head about this one for a while, and my Googling
didn't come up with much, so I thought I'd post a quick solution here.
Basically, I wanted to use Ruby Enterprise if I SSH onto my VPS and
want to use script/console.

All you have to do is SSH onto your server and add the following to
your ~/.bashrc file:

PATH="/opt/ruby-enterprise/bin:$PATH"

I've installed Ruby Enterprise there, but perhaps your path would need
to look like:

PATH="/opt/ruby-enterprise-X.X.X/bin:$PATH"

...where the X.X.X is replaced by your version number.

Anyway, once you log out and back in again, you should be using Ruby
Enterprise when you do a script/console command.

Of course, this would mean calls to ruby, irb, etc would use Ruby
Enterprise. So, I don't know that I advise this for everyone, but it's
good for me on a VPS that's only running Apache with Passenger.

- Trevor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nic Benders  
View profile  
 More options Sep 3 2009, 11:05 pm
From: Nic Benders <nic.bend...@gmail.com>
Date: Thu, 3 Sep 2009 20:05:35 -0700
Local: Thurs, Sep 3 2009 11:05 pm
Subject: Re: Using Ruby Enterprise for Rails script/console
On Sep 3, 2009, at 4:55 PM, Trevor Turk wrote:

> I was scratching my head about this one for a while, and my Googling
> didn't come up with much, so I thought I'd post a quick solution here.
> Basically, I wanted to use Ruby Enterprise if I SSH onto my VPS and
> want to use script/console.

If you want to just use REE for script/console, without setting it for  
everything, you can also just set which irb you want to use:

./script/console --irb=/path/to/your/ree/irb


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Trevor Turk  
View profile  
 More options Sep 3 2009, 11:21 pm
From: Trevor Turk <trevort...@gmail.com>
Date: Thu, 3 Sep 2009 20:21:02 -0700 (PDT)
Local: Thurs, Sep 3 2009 11:21 pm
Subject: Re: Using Ruby Enterprise for Rails script/console
On Sep 3, 10:05 pm, Nic Benders <nic.bend...@gmail.com> wrote:

> If you want to just use REE for script/console, without setting it for  
> everything, you can also just set which irb you want to use:

> ./script/console --irb=/path/to/your/ree/irb

Oh, that's a nice one. Thanks, Nic!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »