Hello,

I'm currently working on a Ruby project which consists of an API application and a lightweight frontend application powered by Grape[1] and Sinatra[2] respectively.

I am wondering what the best way to share resources (code and database access) between the two is on the Celedon Cedar stack.

My first instinct is to use mount both in a single rack instance but this prevents me from being able to scale them individually.

My second would be to create Procfile entries like:
  api: rackup -s thin api.ru
  web: rackup -s thin web.ru
but I don't know how Heroku manages web server processes.

My third and final thought would be to manage these as two separte Heroku applications. Would it be possible for them to share the same Postgres and RedisToGo instances if we do this?

Thanks in advance for your help.

--
Steven! Ragnarök
[email protected]
http://www.nuclearsandwich.com

--
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to