Skip to content

Instantly share code, notes, and snippets.

@ncdc
Last active December 26, 2015 10:59
Show Gist options
  • Save ncdc/7140747 to your computer and use it in GitHub Desktop.
Save ncdc/7140747 to your computer and use it in GitHub Desktop.
Create jbossews/as/eap app:
- install script puts ROOT.war in jbossews/webapps/ROOT.war or jboss{as,eap}/standalone/deployments/ROOT.ar
- AFTER prepare syncs files to app-deployments, post_install script copies ROOT.war to app-root/runtime/repo
- NOTHING synced to app-deployments/current/repo/webapps or deployments
- ROOT.war synced to app-deployments/current/dependencies/webapps|deployments
Scale up:
- new gear created
- head gear's app-deployments synced to new gear
- activation copies from app-deployments to app-root/runtime
- ROOT.war copied from app-deployments/current/dependencies/... to app-root/runtime/dependencies/...
- app-root/rumtime/repo/webapps|deployments is EMPTY
- control#deploy sees that repo/webapps|deployments exists so it rsyncs with --delete from repo to $cart/webapps|deployments
- thus *deleting* ROOT.war
- gear is DOWN (ROOT.war missing from $cart_dir)
Make change and git push:
- mvn writes ROOT.war to app-root/runtime/webapps|deployments during control#build
- prepare syncs ROOT.war from runtime/repo to app-deployments/current/repo
- control#deploy syncs runtime/repo/.../ROOT.war to $cart_dir/...
- gear is UP (ROOT.war in $cart_dir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment