(ns circleci.init
  ;; (:require circleci.swank)
  (:require circleci.db)
  (:require circleci.db.migrations)
  (:require circleci.web)
  (:require circleci.repl)
  (:require circleci.logging)
  (:require circleci.backend.nodes
            circleci.backend.project.rails
            circleci.backend.project.circleci))

(def init*
  (delay
   (try
     (circleci.logging/init)
     ;; (circleci.swank/init)
     (circleci.db/init)
     (circleci.db.migrations/init)
     (circleci.web/init)
     (circleci.repl/init)
     true    
     (catch Exception e
       (println "caught exception on startup:")
       (.printStackTrace e)
       (println "exiting")
       (System/exit 1)))))

(defn init
  "Start everything up. idempotent."
  []
  @init*)

(defn -main []
  (init))
(ns circleci.init
  ;; (:require circleci.swank)
  (:require circleci.db)
  (:require circleci.db.migrations)
  (:require circleci.web)
  (:require circleci.repl)
  (:require circleci.logging)
  ;; (:require circleci.backend.nodes
  ;;           circleci.backend.project.rails
  ;;           circleci.backend.project.circleci)
  )

(def init*
  (delay
   (try
     (circleci.logging/init)
     ;; (circleci.swank/init)
     (circleci.db/init)
     (circleci.db.migrations/init)
     (circleci.web/init)
     (circleci.repl/init)
     true    
     (catch Exception e
       (println "caught exception on startup:")
       (.printStackTrace e)
       (println "exiting")
       (System/exit 1)))))

(defn init
  "Start everything up. idempotent."
  []
  @init*)

(defn -main []
  (init))
Comment out the backend code, to allow heroku to start
Comment out the backend code, to allow heroku to start

prathamesh-sonpatki/frontend,circleci/frontend,RayRutjes/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend