Hopefully a simple ruby on rails question..

Soldato
Joined
18 Oct 2002
Posts
9,047
Location
London
I have an application running on my machine, very simple one. i.e. It took longer to set up RoR than it did to make it... ;)

My webserver supports RoR, but I haven't a clue how you go about "running" it there? I transferred the entire folder structure there, hoping it would "just work" PHP style. But I guess I'm missing a vital step?

Any help would be great, I don't really know what to do. Usually I just use the cmd.exe and use 'ruby script/server' on localhost..
 
Well my hosting is tsohost with apache/cpanel. I'm just unsure where to "go" really. It's a lot easier on your own machine (using webrick). Is there some guide or something for putting your work onto a proper host?
 
Yeah the old server I was on didn't support it, but I recently moved to one with php5 and RoR. I guess I'll have to wait for a reply from the support there.
 
I have SSH access it turns out.

So I made a simple app 'rails test' and generated a controller with a simple index def to 'render_test "hello"'
But I'm still left with just a bunch of files, and I'm unsure how to "run" it. Using 'ruby script/server' starts webrick, but it looked like it was running on localhost and it didn't seem to effect my application.

I can't believe how hard it is to find a straight forward tutorial on the web for this kind of thing. I found this on dreamhost, but it doesn't seem to relate to my setup http://www.railshosting.org/#dreamhost
 
Oh right, well yeah it's just normal apache. Standard shared web hosting with cpanel+ssh.. Are you saying that I just have to do something like this?

ruby script/server -b <shared hosting ip>

That runs, but then going to /app/ doesn't do anything or /app/public/ very very confused.
 
Back
Top Bottom