Thanks. I was able to get this to work with a couple of modifications. First of all, I added the settings to my cas.properties file rather than setting them on the command line. I did this so I can keep as many of the changes in source control as possible.
Second, I had to modify the static locations prop as follows: > > spring.resources.static-locations=file:///etc/cas/resources/,classpath:/static/ > Without the classpath, CAS was only serving files from my local directory and I only wanted to externalize the resources I'm adding and overriding. On Wednesday, February 5, 2020 at 6:11:23 AM UTC-8, B Ran wrote: > > > Haven't tried on Windows, but on Linux with Embedded Tomcat, I could add > some arguments to the service running Java > > -Dspring.resources.static-locations=file:/opt/cas/theme/static/ > -Dspring.thymeleaf.prefix=file:/opt/cas/theme/templates/ > -Dspring.thymeleaf.cache=false -Dspring.resources.cache.period=0 > > Le mardi 4 février 2020 18:41:24 UTC+1, Dustin J Luck a écrit : >> >> I have successfully moved almost all of the customizations for my CAS >> environment out of the source folder in the overlay into external >> directories that can be referenced at run time without having to rebuild my >> cas.war file. The last parts I'm trying to externalize are in the >> \src\main\resources\static directory. If anyone has successfully done this >> or knows how to, I'd appreciate any help you can give. >> >> >> Thanks >> >> >> *My environment:* >> >> - Standalone CAS 6.0.5 build >> - Windows Server 2012 R2 >> - Tomcat 9 running as a service >> >> >> >> -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/de3059ca-72b7-4d94-9206-d41ee08f5db4%40apereo.org.
