> Add. infos:
> - I'm trying to run it on a cheap shared web-hosting (Linux server).

That's probably your problem -- most cheap shared web hosting services aren't 
running a deployment stack for Rails. 


> - Ruby on Rails + gems are installed there, can access them via the
> cPanel.
> - I've created a test-app through the cPanel - with success.
> - I've created a rewrite
> - I can access the subdomain via my browser and I'll see the "Welcome
> aboard" start page.


OK, maybe I'm wrong, perhaps your "cheap" shared web host does have a Rails 
deployment stack. 

Four tips for you to point you in the right direction:

1) try deleting the file public/index.html. That will make the "Welcome aboard" 
message go away. In its place you will get a nice "Route could not be found" 
error, so go check out your routes.rb file and let about how the Rails router 
works.

2) You can do all of this locally, you don't need a web host, try starting 
Webrick ("rails server" in rails 3 or "script/server" in rails 2) and point 
your browser  http://localhost:3000

3) Check out Phusion Passenger

4) When you're actually ready to deploy an app for real, don't mess around with 
your "cheap shared web-hosting" provider -- go to Heroku. It's cheap, as-in 
basically free, for small low-traffic apps. 

-Jason







On Sep 28, 2011, at 10:09 AM, -- -- wrote:

> Hello Everyone,
> 
> first off - I'm NOT a programmer. I know HTML/CSS very well and PHP
> quite well, yet not I'm in need of a more "active" language and I've
> decided to go with Ruby.
> 
> Thing is, I've been able to find ton of tutorials, but NOT ONE answers
> the most basic question - what exactly do I have to upload to the server
> to simply get a (any) response from Ruby (through a browser, using a
> regular shared webhosting).
> 
> The closest "answer" I could find was that unlike HTML/PHP, Ruby needs a
> specific file structure (controllers, models, views) but still - neither
> of the 30+ tutorials I've browsed through tells me:
> - How many files exactly do I require for a simple "Hello World!"?
> - What extensions should these files have?
> - Where to put which files?
> - What the hell should these files contain?
> 
> Now, I can "play" with Ruby via the command line locally and I can just
> create an .rb file and run it from there, but that's not the point, I
> want it to show online via a browser and as ridiculous as it sounds - I
> don't know how to do that?
> 
> Add. infos:
> - I'm trying to run it on a cheap shared web-hosting (Linux server).
> - Ruby on Rails + gems are installed there, can access them via the
> cPanel.
> - I've created a test-app through the cPanel - with success.
> - I've created a rewrite
> - I can access the subdomain via my browser and I'll see the "Welcome
> aboard" start page.
> 
> What now?
> 
> I just can't continue to learn the language via simple out-of-context
> examples via the command line while I have no idea where to upload which
> files to make it really function on-line :(
> 
> Please help.
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to