Skip to content

Instantly share code, notes, and snippets.

@davidmc24
Last active August 29, 2015 14:18
Show Gist options
  • Save davidmc24/a45f1e9c091cf396e856 to your computer and use it in GitHub Desktop.
Save davidmc24/a45f1e9c091cf396e856 to your computer and use it in GitHub Desktop.
Ratpack baseDir config use cases
  1. gradle build run
  • src/ratpack is on classpath, located via .ratpack marker file
  1. intellij run config
  • src/ratpack is on classpath, located via .ratpack marker file
  1. single-jar deployment (no separate filesystem)
  • assets, including .ratpack marker file, are embedded in root of jar
  1. separate file system deployment
  • config file, app JAR, and app file system potentially all in different directories
  • maybe /etc/app/app.yaml, /opt/app/app.jar, /var/app/*.html/css/js
  • /var/app/.ratpack marker file exists, and directory is on classpath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment