Add deployment stuff
This commit is contained in:
parent
eb0d17f7cf
commit
c8be5e4191
3 changed files with 23 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
target
|
4
deploy.sh
Executable file
4
deploy.sh
Executable 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
18
src/luduverse/handler.clj
Normal 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]))
|
Loading…
Reference in a new issue