title: Running Sinatra application on Amazon EC2
body: <p>I have created a Sinatra application, which I want to run on Amazon EC2. I know there is heroku, but having Amazon EC2 as another option would be nice. One other reason is that there is this timeout issue on heroku (<a href="https://devcenter.heroku.com/articles/request-timeout" rel="nofollow">source</a>):</p>
  
  <pre><code>The Heroku routing mesh detects and terminates requests taking more than 30 seconds to respond.
  </code></pre>
  
  <p>Up to now I created a micro instance with Ubuntu, and installed required libraries, and got my Sinatra application running by <code>ruby -rubygems app.rb</code> command. What I need to do is get my app running all the time, as long as server is running, not just the time between I run the command above and quit the command line. Do you know any simple and lightweight solution to do this?</p>