Add deployment stuff

This commit is contained in:
Aaron Mueller 2014-09-27 17:24:06 +02:00
parent eb0d17f7cf
commit c8be5e4191
3 changed files with 23 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
target

4
deploy.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
rsync -uva --delete --exclude=.git --exclude=target . clojurecup@luduverse.clojurecup.com:/home/clojurecup/luduverse
ssh clojurecup@luduverse.clojurecup.com 'cd /home/clojurecup/luduverse && /home/clojurecup/bin/lein immutant deploy'

18
src/luduverse/handler.clj Normal file
View file

@ -0,0 +1,18 @@
(ns luduverse.handler
(:require [compojure.core :refer [defroutes]]
[compojure.route :as route]
[noir.util.middleware :as middleware]))
(defroutes core-routes
(route/resources "/")
(route/not-found "Nothing to see here at the moment ..."))
(defn init [])
(defn destroy [])
(def app (middleware/app-handler
[core-routes]
:middleware []
:access-rules []
:formats [:json-kw :edn]))