I am very new to `ruby` and I wonder, **Is it possible to have my ruby script deployed on a server?**  

Or I should have to use Rails?

As I can understood that Rails is not part of the core `Ruby` lang, and `Ruby` have `server` functionality even without Rails. (as in Java, PHP, etc..)

**EDIT**:

I have a `Ruby script` - acts as a cmd-line passed program - and I want to deploy it to an external (or even internal) server the way `CGI` scripts/programs used to do.