Skip to content

Instantly share code, notes, and snippets.

@kungfoo
Created November 2, 2017 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kungfoo/5dfe776c31f9fd9211a4bde318a800e2 to your computer and use it in GitHub Desktop.
Save kungfoo/5dfe776c31f9fd9211a4bde318a800e2 to your computer and use it in GitHub Desktop.
Ddeploy to glassfish using curl POST
curl --user $user:$password \
--insecure \
--progress-bar \
-H "Accept: application/json" \
-H "X-Requested-By: dummy" \
-X POST \
-F id=@build/libs/$your_war_file \
-F contextroot=$application_name -F name=$application_name \
-F force=true \
https://$glassfish_host:4848/management/domain/applications/application/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment