Created
April 21, 2010 22:15
-
-
Save hugoduncan/374473 to your computer and use it in GitHub Desktop.
Deploy a warfile to tomcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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