# \[Newbie\] What folder to upload to?

**URL:** <https://www.ruby-forum.com/t/newbie-what-folder-to-upload-to/194585>\
**Category:** Ruby\
**Created:** [September 7, 2010, 3:06pm UTC](https://www.ruby-forum.com/t/newbie-what-folder-to-upload-to/194585 "2010-09-07T15:06:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jh100000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Post date:** [September 7, 2010, 3:06pm UTC](https://www.ruby-forum.com/t/newbie-what-folder-to-upload-to/194585/1 "2010-09-07T15:06:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jh100000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Post date:** [September 7, 2010, 3:16pm UTC](https://www.ruby-forum.com/t/newbie-what-folder-to-upload-to/194585/2 "2010-09-07T15:16:39Z")

</div>

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/](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.

---

<div class="post-metadata">

**Author:** ![jh100000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Post date:** [September 7, 2010, 3:18pm UTC](https://www.ruby-forum.com/t/newbie-what-folder-to-upload-to/194585/3 "2010-09-07T15:18:00Z")

</div>

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