Executing Ruby on Rail On Specific Server!

Hi,
I successfully executes ruby on rail programs with ajax on my local
computer
with port number as 3000.

Now i want to upload & run this programs online.
How can i?
Is this necessary to install ruby,rail,web-brick server on my online
server.
what is the url for running online(as 3000 on local).

Please…

Thank you!