I had to wrap this in a dev environment block or I had terrible errors outside of dev
This is what I ended up with, but I'm still not happy with it, since
grails run-war -https
I do not like
eventConfigureTomcat = { tomcat -> if (grailsEnv == "development") { tomcat?.host?.addValve new AccessLogValve( directory: basedir, prefix: 'localhost_access_log.', suffix: '.log', pattern: 'common') } }
produces the following:
[unzip] Expanding: foo.war into /Users/tak/.grails/1.3.7/projects/foo/war Running Grails application.. java.lang.NullPointerException: Cannot set property 'hostname' on null object at org.grails.tomcat.TomcatServer.startSecure(TomcatServer.groovy:273)
sadness.
source share