2

I know how to install apache or nginx to an ubuntu server on aws. My experience is usually with php applications where I create a virtualhost and point it towards the path of my application's index.php

I would assume since Sinatra is a rack based applications, I would need to point a virtual host to the config.ru file in my application. Is that correct?

But then how would I keep the application running continuously without my console?

Could someone please explain how to setup a Sinatra deployment on either apache or nginx? I can't find any authoritative information on the web about this.

Amit Erandole
  • 11,995
  • 23
  • 65
  • 103
  • `screen` can be used to run a console process without continuously login. Not familiar with rack, but are you trying to use nginx as a `reverse proxy`? – Jokester Dec 22 '12 at 05:10
  • 1
    I hope the answer listed in this [URL](http://stackoverflow.com/questions/3371208/how-to-setup-a-sinatra-app-under-apache-with-passenger) will help you. – Jirilmon Dec 22 '12 at 07:01
  • What is screen exactly? never heard of it – Amit Erandole Dec 22 '12 at 07:12
  • [GNU screen](http://en.wikipedia.org/wiki/GNU_Screen) is a terminal multiplexer. In other words, it allows you to access multiple terminal sessions within a single terminal window. You can set up a screen session to run independently from a terminal as well. – Josh Voigts Dec 22 '12 at 23:55

1 Answers1

1

The Linode library is a good source for these types of things: Sinatra Framework and nginx on Debian 6

That guide is for Debian but you should be able to follow the same steps on Ubuntu.

Luke
  • 4,855
  • 1
  • 22
  • 18