[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Using Ruby on a generic ISP

SpringFlowers AutumnMoon

10/6/2007 5:05:00 PM

I wonder how Ruby can be used on a generic ISP right now?

looks like right now i can use a

test.rb in my cgi-bin directory, and it is
not even checking the #!/usr/bin/ruby line

and then i tried a test.erb in the cgi-bin or a test.rhtml in the www
directory, and neither of them worked.

the test.erb won't work with
the line #!/usr/bin/erb or #!/usr/bin/local/erb


So I wonder, can I do something on my own directories so that
test.rhtml, test.erb, ActiveRecord, and ActiveSupport will work?
--
Posted via http://www.ruby-....

2 Answers

Benjamin A'Lee

10/6/2007 5:38:00 PM

0

On Sun, Oct 07, 2007 at 02:05:18AM +0900, SpringFlowers AutumnMoon wrote:
> I wonder how Ruby can be used on a generic ISP right now?
>
> looks like right now i can use a
>
> test.rb in my cgi-bin directory, and it is
> not even checking the #!/usr/bin/ruby line
>
> and then i tried a test.erb in the cgi-bin or a test.rhtml in the www
> directory, and neither of them worked.
>
> the test.erb won't work with
> the line #!/usr/bin/erb or #!/usr/bin/local/erb
>
>
> So I wonder, can I do something on my own directories so that
> test.rhtml, test.erb, ActiveRecord, and ActiveSupport will work?

If the ISP doesn't have Ruby on their server, there's not very much you
can do about it...

--
Benjamin A'Lee <bma@subvert.org.uk>
http://subvert.or...
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr.
Babbage, if you put into the machine wrong figures, will the right answers come
out?' I am not able to rightly apprehend the kind of confusion of ideas that
could provoke such a question." - Charles Babbage

John Joyce

10/7/2007 12:24:00 AM

0


On Oct 6, 2007, at 12:37 PM, Benjamin A'Lee wrote:

> On Sun, Oct 07, 2007 at 02:05:18AM +0900, SpringFlowers AutumnMoon
> wrote:
>> I wonder how Ruby can be used on a generic ISP right now?
>>
>> looks like right now i can use a
>>
>> test.rb in my cgi-bin directory, and it is
>> not even checking the #!/usr/bin/ruby line
>>
>> and then i tried a test.erb in the cgi-bin or a test.rhtml in the www
>> directory, and neither of them worked.
>>
>> the test.erb won't work with
>> the line #!/usr/bin/erb or #!/usr/bin/local/erb
>>
>>
>> So I wonder, can I do something on my own directories so that
>> test.rhtml, test.erb, ActiveRecord, and ActiveSupport will work?
>
> If the ISP doesn't have Ruby on their server, there's not very much
> you
> can do about it...
>
Not necessarily, as long as they allow you to compile /install
software in your directory, you might be able to make it work.
DreamHost is the common cheap hosting service that everyone and their
dog has an account with. They have Ruby, but their gems are always
out of date.
People commonly install their own gems in their own directory.
Theoretically you could install your own Ruby in there too. I tried
it. It works, but it's a lot slower, so I just kept using their binary.