Created
March 20, 2014 18:20
-
-
Save statonjr/9670407 to your computer and use it in GitHub Desktop.
Using a Makefile to package a Datomic-backed Clojure app on Immutant
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
{:root "apps/charon.ima" | |
:context-path "/charon" | |
:lein-profiles [:local] | |
:nrepl-port 7888} |
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
# target: dist - Archive and deploy to local Immutant VM | |
dist: | |
lein immutant archive && \ | |
scp target/charon.ima local@172.16.12.105:apps/ && \ | |
scp resources/deployment/local.clj 'local@172.16.12.105:.immutant/current/jboss/standalone/deployments/charon.clj' && \ | |
ssh -t local@172.16.12.105 "touch ~/.immutant/current/jboss/standalone/deployments/charon.clj.dodeploy" | |
# target: help - Display callable targets. | |
help: | |
egrep "^# target:" Makefile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment