From: Ezra Zygmuntowicz <ezmobius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Subject: Re: [ANN] Unicorn: UNIX+localhost/LAN-only Mongrel fork
Date: Wed, 25 Feb 2009 23:06:49 -0800 [thread overview]
Message-ID: <8A7FE402-3E32-4143-A561-CAF34853EEB3@gmail.com> (raw)
In-Reply-To: <20090226055544.GA20153-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
> OK, here's some thoughts leading up to what I'm probably going
> to do...
>
> 1. APP_ROOT/config.ru is in a pretty standardized location, good.
>
> 2. Most config.ru files out there (probably) don't contain
> environment-specific logic. That is, developers on their
> desktop/laptops and the production app in datacenters can
> share the same config.ru without much difficulty.
>
> Can somebody please confirm this assumption?
Yeah i think APP_ROOT/config.ru is the standard here. Passenger uses
it and its easy to use form rackup. heroku and ey-solo both look for
config.ru in the approot.
>
> 3. Unicorn-specific config options should only be needed for
> server deployments. Things for the typical developer
> on their workstation should "just work", like running
> "script/server" and "mongrel_rails" in RAILS_ROOT does
> for old Rails apps.
Yeah I think this is a better idea then my suggestion.
>
>
> This leads me to keeping the Unicorn config file separate for
> production
> environments. My personal experience (with old Rails apps) is that
> there are multiple "production"-like environments (staging, QA,
> different datacenters)...
>
> I'd imagine some apps I support will end up with config file
> layouts looking like this:
>
> APP_ROOT/config/unicorn/prod_lax.rb
> APP_ROOT/config/unicorn/prod_dfw.rb
> APP_ROOT/config/unicorn/prod_nyc.rb
> APP_ROOT/config/unicorn/prod_chi.rb
> APP_ROOT/config/unicorn/qa.rb
> APP_ROOT/config/unicorn/staging.rb
> APP_ROOT/config/unicorn/demo.rb
> APP_ROOT/config.ru
>
> Thus to deploy to our Los Angeles datacenter, the script
> would just run:
>
> unicorn -c APP_ROOT/config/unicorn/prod_lax.rb
>
> If there's an APP_ROOT/config_prod.ru needed, then
> the APP_ROOT/config/prod_*.rb files would each
> be able to specify APP_ROOT/config_prod.ru instead
> of APP_ROOT/config.ru.
>
> That is, the Unicorn config file can specify an alternate
> config.ru, but config.ru cannot specify a different
> Unicorn config file.
>
> Am I making sense? (it's been a long week for me so far...)
I think you've nailed it here.
Cheers-
Ezra
prev parent reply other threads:[~2009-02-26 7:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-11 23:04 [ANN] Unicorn: UNIX+localhost/LAN-only Mongrel fork Eric Wong
[not found] ` <20090211230457.GB22926-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-12 0:32 ` Ryan Dahl
[not found] ` <21ee31950902111632y6df95e9h1f9dd642bcc55baf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-02-12 0:59 ` Eric Wong
[not found] ` <20090212005932.GB26706-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-12 1:08 ` Ryan Dahl
[not found] ` <21ee31950902111708m370f6a28s477b2d2fb4af960b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-02-12 3:28 ` Eric Wong
[not found] ` <20090212032844.GA24045-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-12 20:05 ` Evan Weaver
[not found] ` <b6f68fc60902121205t67bc8bd7n2740162a76d1b852-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-02-14 9:46 ` Eric Wong
2009-02-12 0:40 ` Ezra Zygmuntowicz
[not found] ` <DA13594B-59BD-4EBD-8326-C98D5B85819C-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-02-16 23:39 ` Eric Wong
[not found] ` <20090216233904.GB3198-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-17 1:59 ` Ezra Zygmuntowicz
[not found] ` <2A92C72C-498A-4A6E-9035-059CCF4C7371-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-02-18 0:40 ` Eric Wong
[not found] ` <20090218004036.GA29439-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-21 15:10 ` Eric Wong
2009-02-24 1:03 ` Eric Wong
[not found] ` <20090224010344.GG26706-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-24 2:28 ` Ezra Zygmuntowicz
[not found] ` <409638DC-A76B-40E1-AE5C-326F2573DACC-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-02-24 3:12 ` Eric Wong
[not found] ` <20090224031223.GH26706-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-26 5:55 ` Eric Wong
[not found] ` <20090226055544.GA20153-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-26 7:06 ` Ezra Zygmuntowicz [this message]
replies disabled, historical list
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).