Skip to content

Instantly share code, notes, and snippets.

@cnative100
Last active February 26, 2017 02:27
Show Gist options
  • Save cnative100/136d344d63c211d775b7dfbe64a0b5db to your computer and use it in GitHub Desktop.
Save cnative100/136d344d63c211d775b7dfbe64a0b5db to your computer and use it in GitHub Desktop.
Krausening (Externalized) Properties for GreenMaven

This is an example of the Krausening setup on Windows. We use Krausening (https://bitbucket.org/askllc/krausening) to manage properties externally as we bounce between OS and machines for dev, test, and prod.

database.url=jdbc:mysql://localhost:3306/farmhacker
database.user=root
database.password=mydatabasepassword
database.driver.class=com.mysql.jdbc.Driver
rem Add this near the top of the startup script in Tomcat.
rem Be sure to actually create the base and extension folders to your tomcat/conf folder.
set JAVA_OPTS=-DKRAUSENING_BASE="C:/dev/tomcat8/conf/krausening/base" -DKRAUSENING_EXTENSION="C:/dev/tomcat8/conf/krausening/localhost"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment