Skip to content

Instantly share code, notes, and snippets.

@hugoduncan
Created April 21, 2010 22:15
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 hugoduncan/374473 to your computer and use it in GitHub Desktop.
Save hugoduncan/374473 to your computer and use it in GitHub Desktop.
Deploy a warfile to tomcat
;; Example for deploying a war file
(ns tomcat-deploy
(:require
[pallet.crate.tomcat :as tomcat]
[pallet.core :as core]))
(defn deploy-my-file
[]
(tomcat/deploy-local-file "path to warfile" "appname"))
;;;
(defn all-in-one
[]
(defnode appserver [:debian])
(with-admin-user ["username" :public-key-path "path-to-public-key"]
(with-compute-service ["rimu" "user" "password"]
(core/lift appserver (deploy-myfile)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment