From 2c06c5b9054e375ab03e58458f0cec12f6837e0b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sat, 21 Jan 2017 17:36:01 +0100 Subject: [PATCH] Fix fixtures entry point. --- backend/scripts/fixtures.sh | 2 +- backend/src/uxbox/fixtures.clj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/scripts/fixtures.sh b/backend/scripts/fixtures.sh index 08438345f..796695777 100755 --- a/backend/scripts/fixtures.sh +++ b/backend/scripts/fixtures.sh @@ -3,4 +3,4 @@ DIR=`dirname $0` LEIN="$DIR/lein" -$LEIN trampoline run -m uxbox.fixtures/init +$LEIN trampoline run -m uxbox.fixtures diff --git a/backend/src/uxbox/fixtures.clj b/backend/src/uxbox/fixtures.clj index d75f33d52..2fa095cd6 100644 --- a/backend/src/uxbox/fixtures.clj +++ b/backend/src/uxbox/fixtures.clj @@ -67,8 +67,8 @@ (def num-projects 5) (def num-pages 5) -(defn init - [] +(defn -main + [& args] (mount/start) (with-open [conn (db/connection)] (sc/atomic conn