Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Sep 25th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. (ns scaffoldjs.server
  2.   (:require [noir.server :as server]
  3.             [scaffoldjs.db :as db]
  4.             [noir.cljs.core :as cljs]))
  5.  
  6. (server/load-views "src/scaffoldjs/views/")
  7. (def cljs-options {:advanced {:externs ["externs/jquery.js"]}})
  8.  
  9. (defn -main [& m]
  10.   (let [mode (keyword (or (first m) :dev))
  11.         port (Integer. (get (System/getenv) "PORT" "8090"))]
  12.     (db/connect-db)
  13.     (cljs/start mode cljs-options)
  14.     (server/start port {:mode mode
  15.                         :ns 'scaffoldjs})))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top