(ns server.systems
  (:require [system.core :refer [defsystem]]
            (system.components
              [http-kit :refer [new-web-server]])
            [clj-consonant.local-store :refer [new-local-store]]
            [server.handler :refer [app-server backend-server]]))

(defsystem development-system
  [:app-server (new-web-server 3000 app-server)
   :backend-server (new-web-server 3001 backend-server)
   :consonant (new-local-store "/home/jannis/tmp/copaste-store.git")])

(defsystem production-system
  [:app-server (new-web-server 3000 app-server)
   :backend-server (new-web-server 3001 backend-server)
   :consonant (new-local-store "/home/jannis/tmp/copaste-store.git")])

(ns server.systems
  (:require [system.core :refer [defsystem]]
            (system.components
              [http-kit :refer [new-web-server]])
            [clj-consonant.local-store :refer [new-local-store]]
            [server.handler :refer [app-server backend-server]]))

(defsystem development-system
  [:app-server (new-web-server 3000 app-server)
   :backend-server (new-web-server 3001 backend-server)
   :consonant (new-local-store "/tmp/copaste-store.git")])

(defsystem production-system
  [:app-server (new-web-server 3000 app-server)
   :backend-server (new-web-server 3001 backend-server)
   :consonant (new-local-store "/tmp/copaste-store.git")])

Use /tmp/copaste-store.git for the data store
Use /tmp/copaste-store.git for the data store

Jannis/copaste