[Ovirt-devel] [PATCH] set RAILS_ENV for all services in common /etc/sysconfig/ovirt-rails

Jeff Schroeder jeffschroed at gmail.com
Wed Aug 6 16:56:46 UTC 2008

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.


Shameless plug to a blog entry about just that.

> 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

Jeff Schroeder

Don't drink and derive, alcohol and analysis don't mix.

More information about the ovirt-devel mailing list