Multiple Rails Apps on Single Slicehost Slice (each with it's own Sub Domain) with Nginx

23 views
Skip to first unread message

viatropos

unread,
Dec 29, 2009, 6:03:09 PM12/29/09
to deprec - deployment recipes for capistrano
Hey there,

What's the best way to approach putting multiple apps onto a single
slicehost slice, where there's the main app is at www.mysite.com, and
each sub app at subappA.mysite.com, subappB.mysite.com, etc..?

I think I'm grasping how to do that with Nginx, where you just define
multiple "server {...}" blocks in the nginx.conf file, pointing to the
unique subdomains. I'm just wondering how deprec fits into this? How
do I deploy to sub domains and keep that one global nginx file? Or
should I have individual files combined into one?

Each app (main, subappA, subappB, etc.), will be 100% independent of
each other.

Hope the questions somewhat clear :)

Mike Bailey

unread,
Dec 29, 2009, 10:19:35 PM12/29/09
to deprec...@googlegroups.com
Deprec will do it with apache. There's a vhost config created for each app.

It's been ages since I've used nginx so those recipes may be out of date.

- Mike

> --
>
> You received this message because you are subscribed to the Google Groups "deprec - deployment recipes for capistrano" group.
> To post to this group, send email to deprec...@googlegroups.com.
> To unsubscribe from this group, send email to deprec-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/deprec-users?hl=en.
>
>
>

Reply all
Reply to author
Forward
0 new messages