[Newbie] What folder to upload to?

Hi all,
I am reading all the tutorials and trying to dive into ruby here. I have
a remote web server I want to test my programming on but I am used to
just uploading a file (php or .net) and running it in the root folder
for that page. Ruby seems different and I haven’t really figured out
this part of it.

I am doing a sinatra tutorial and don’t know where to put my files on
the remote web server. Do I put them in the public_html (www) folder or
somewhere else. I managed to get ruby installed on the server using some
SSH.

Can someone point me in the right direction?
John

John Hamman wrote:

I have
a remote web server I want to test my programming on but I am used to
just uploading a file (php or .net) and running it in the root folder
for that page. Ruby seems different and I haven’t really figured out
this part of it.

Depends where you’re hosting. They may or may not support Ruby.

Sinatra is a Rack application, and so needs to run in an environment
which can make Rack calls.

If you manage the webserver yourself: install Apache2 and Phusion
Passenger. The documentation for the latter is very good.

If you have a user shell account on the webserver: you can run your
Sinatra app as a standalone webserver process using “rackup”. It will
listen on a different port, so the URL will be something like
http://x.x.x.x:4567/

You can probably run Rack apps under fastcgi, but this isn’t really very
well supported these days.

If you want to use a third party hosting service: look at heroku. It’s
free for small deployments.

HTH,

Brian.

Thanks!
My hosting allows for ruby and I have it installed. I will see if I can
install passenger too ( I think I can).