--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to a topic in the Google Groups "Lift" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/liftweb/5T_4xm1amr8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to liftweb+u...@googlegroups.com.
Thanks to the pointers everyone. I had forgotten that username/hostname can also be used for Lift to find files. Does anyone know how the hostname is derived? I'm not sure what that will be since I'm in the AWS cloud.
[ec2-user@ip-172-17-2-176 ~]$ hostnameip-172-17-2-176[ec2-user@ip-172-17-2-176 ~]$ cat /etc/hosts127.0.0.1 localhost localhost.localdomain
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
What rules would win out if two keys were defined?
That's my experience as well. It's like in-line styles in css.
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to a topic in the Google Groups "Lift" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/liftweb/5T_4xm1amr8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to liftweb+u...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to liftweb+u...@googlegroups.com.
On 08/25/2015 09:10 AM, Joe Barnes wrote:
> Definitely system properties win. Props are baked into the application,
> and system properties give you the opportunity to override at run time.
>
> We could make something to be configurable to work either way, but I'm
> struggling to imagine a scenario where you would want the baked in props
> files to win. Perhaps if you are defining props files outside of the
> war/jars.
What about allowing Props to embed system property references, like
property=${system.property.name}
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
def prepend(props:Map[String, String]):Unit = {}
def append(props:Map[String, String]):Unit = {}
def appendInterpolator(props:Map[String, String]):Unit = {}
# test.default.props
default.jndi.name=from_props
# Used in net.liftweb.util.PropsSpecs
jetty.port=${PORT}
db.url=jdbc:mysql://${DB_HOST}:${DB_PORT}/MYDB
"Prefer prepended properties to the test.default.props" in {
Props.prepend(Map("jetty.port" -> "8080"))
val port = Props.getInt("jetty.port")
port must_== Full(8080)
}
"Find properties in appended maps when not defined in test.default.props" in {
Props.append(Map("new.prop" -> "new.value"))
val prop = Props.get("new.prop")
prop must_== Full("new.value")
}
"Not interpolate values when no interpolator is given" in {
val port = Props.get("jetty.port")
port must_== Full("${PORT}")
}
"Interpolate values from the given interpolator" in {
Props.appendInterpolator(Map("PORT" -> "8080"))
val port = Props.getInt("jetty.port")
port must_== Full(8080)
}