Skip to content

Commit 46577e6

Browse files
committed
Run with datomic cloud, unless we're on clojurians-log
1 parent 05b3b29 commit 46577e6

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

bin/prep_prod

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/sh
22

3-
# clojure $CLOJURE_OPTS -A:dev:datomic-cloud -m garden-watcher.main clojurians-log.styles
4-
clojure $CLOJURE_OPTS -A:dev:datomic-pro:postgresql -m garden-watcher.main clojurians-log.styles
3+
if [ "`hostname`" == "clojurians-log" ]; then
4+
clojure $CLOJURE_OPTS -A:dev:datomic-pro:postgresql -m garden-watcher.main clojurians-log.styles
5+
else
6+
clojure $CLOJURE_OPTS -A:dev:datomic-cloud -m garden-watcher.main clojurians-log.styles
7+
fi

bin/run_prod

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
22

3-
#clojure $CLOJURE_OPTS -A:datomic-cloud -m clojurians-log.application "$@"
4-
clojure $CLOJURE_OPTS -A:datomic-pro:postgresql -m clojurians-log.application "$@"
3+
# FIXME: find a better way to configure this on a per-host basis
4+
if [ "`hostname`" == "clojurians-log" ]; then
5+
clojure $CLOJURE_OPTS -A:datomic-pro:postgresql -m clojurians-log.application "$@"
6+
else
7+
clojure $CLOJURE_OPTS -A:datomic-cloud -m clojurians-log.application "$@"
8+
fi

0 commit comments

Comments
 (0)