"if" in boss.config

14 views
Skip to first unread message

tome...@gmail.com

unread,
Mar 24, 2014, 10:06:57 AM3/24/14
to chica...@googlegroups.com
Hi,
At my workplace we use virtual machines for development and before release,
we usually clone production machine, test the release and then go live.
The only thing, that changes in clones is hostname and ip.

How can I achieve an "if" in my boss.config, for example:

case hostname of
  "production" -> {db_host, Ip1};
  "staging" -> {db_host, Ip2}
end

If I can't do it in config,
should I evaluate them dynamically using script in ./priv/init?
Reply all
Reply to author
Forward
0 new messages