I am thinking about implementing a REST-ful interface with Sinatra for
my business client. When selecting a web host (shared hosting - at
least initially), what are the minimal requirements I will need from
the hosting provider.
I tried a little Sinatra REST demo out on my own site hosted on
a2hosting.com and got it to work fine (after a bit of help from you
folks with loading gems), but am concerned by the need to ssh info my
account on the host and run "ruby ...". How do I keep the service up
and running if ruby crashes other than having to log on each time and
type "ruby mywebapp.rb" on the command line to restart it? (Of
course, I could run ruby from a bash script that catches exceptions
and restart it, but I'm hoping there's a best practice that's
supported or recommended by the "community".) I have a hunch that
Rack and/or Camping may have solutions for restarting a failed
service, but then what do I need to ask the host provider to make sure
it's supported?
My client wants to use DreamHost. DH supports Ruby on Rails. Is that
all that's needed to accomplish this cleanly?