Skip to content

Instantly share code, notes, and snippets.

@statonjr
Created March 20, 2014 18:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save statonjr/9670407 to your computer and use it in GitHub Desktop.
Save statonjr/9670407 to your computer and use it in GitHub Desktop.
Using a Makefile to package a Datomic-backed Clojure app on Immutant
{:root "apps/charon.ima"
:context-path "/charon"
:lein-profiles [:local]
:nrepl-port 7888}
# 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