Created
April 1, 2011 17:30
-
-
Save maacl/898524 to your computer and use it in GitHub Desktop.
project.clj example using contexts and cake deploy.
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
(defproject +project+ "0.0.1-SNAPSHOT" | |
:description "TODO: Write project description" | |
:main +project+.core | |
:dependencies [[org.clojure/clojure "1.2.0"] | |
[org.clojure/clojure-contrib "1.2.0"] | |
[enlive "1.0.0-SNAPSHOT"] | |
[net.cgrand/moustache "1.0.0-SNAPSHOT"] | |
[ring/ring-core "0.3.0"] | |
[ring/ring-jetty-adapter "0.3.0"] | |
[ring/ring-devel "0.3.0"] | |
[log4j "1.2.15" | |
:exclusions [javax.mail/mail | |
javax.jms/jms | |
com.sun.jdmk/jmxtools | |
com.sun.jmx/jmxri]]] | |
:dev-dependencies [[swank-clojure "1.2.0"]] | |
:war-name "+project+" | |
:jar-files [["resources" ""]] | |
:war-files [["resources" ""]]) | |
(defcontext dev | |
:deploy {:username "vagrant" | |
:hosts ["127.0.0.1"] | |
:port 2222 | |
:identity "/var/lib/gems/1.8/gems/vagrant-0.7.2/keys/vagrant" | |
:pre [] | |
:copy [["cmc-dev.war" "/home/vagrant"]] | |
:post ["/etc/init.d/tomcat6 restart"]} | |
:db {:host "192.168.1.*"}) | |
(defcontext prod | |
:deploy {:username "***" | |
:hosts ["***.***.***.***"] | |
:port **** | |
:pre [] | |
:copy [["cmc-prod.war" "/home/***"]] | |
:post ["/etc/init.d/tomcat6 restart"]} | |
:db {:host "127.0.0.1"}) | |
(deftask deploy #{uberwar}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment