Let's say I have the simplest single-file Sinatra app. The hello world on their homepage will do. I want to run it under Apache with Phusion Passenger, AKA mod_rails.
- What directory structure do I need?
- What do I have to put on the vhost conf file?
- I understand I need a rackup file. What goes in it and why?
Basic directory structure:
Virtual host file:
config.ru
hello-app.rb (sample application):
restart.txt
is empty.Mildly useful links:
Example vhost file for rack app with passenger:
Example Config.ru: