Hi Steven, Heroku apps can only have one process binding to a port. Even if it allowed multiple, you'd still need to define where you want to mount them in relation to the App URL. For instance, would app.heroku.com/abc point to api or web?
And that's why joining web and api together with Rack URLMap is the best solution imo. So why do you want to scale web processes individually? On Mon, Jun 20, 2011 at 1:25 PM, "Steven! Ragnarök" <[email protected]> wrote: > 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. > > -- 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.
