[Ovirt-devel] [PATCH] set RAILS_ENV for all services in common /etc/sysconfig/ovirt-rails
Steve Linabery
slinabery at redhat.com
Wed Aug 6 17:06:51 UTC 2008
On Wed, Aug 06, 2008 at 09:56:46AM -0700, Jeff Schroeder wrote:
> On Wed, Aug 6, 2008 at 9:50 AM, Steve Linabery <slinabery at redhat.com> wrote:
> > "${RAILS_ENV:-production}"--I haven't seen that syntax before: ${FOO:-bar} What does it do?
>
> ${FOO:-bar} returns bar if FOO is unset or null.
>
> http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02
>
> Shameless plug to a blog entry about just that.
> http://digitalprognosis.com/blog/2008/06/13/increasing-command-line-productivity-in-the-bash-shell-pt-ii/
>
> > My main comment: is there any reason to put the appliance *partly* in test mode, *partly* in production mode?
> >
> > If not, could we move this to a config file which all these init scripts can source?
>
> Seems like a good approach
>
My bad; Alan pointed out to me that his patch already does this.
ACK.
More information about the ovirt-devel
mailing list