mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
fix(backend): run fixtures without start http server
This commit is contained in:
parent
fd53f07efe
commit
20aacd94f3
1 changed files with 23 additions and 13 deletions
|
@ -6,18 +6,20 @@
|
||||||
|
|
||||||
(ns uxbox.fixtures
|
(ns uxbox.fixtures
|
||||||
"A initial fixtures."
|
"A initial fixtures."
|
||||||
(:require [buddy.hashers :as hashers]
|
(:require
|
||||||
[buddy.core.codecs :as codecs]
|
[buddy.core.codecs :as codecs]
|
||||||
[mount.core :as mount]
|
[buddy.hashers :as hashers]
|
||||||
[clj-uuid :as uuid]
|
[clj-uuid :as uuid]
|
||||||
[suricatta.core :as sc]
|
[mount.core :as mount]
|
||||||
[uxbox.config :as cfg]
|
[suricatta.core :as sc]
|
||||||
[uxbox.db :as db]
|
[uxbox.config :as cfg]
|
||||||
[uxbox.migrations]
|
[uxbox.db :as db]
|
||||||
[uxbox.util.transit :as t]
|
[uxbox.media :as media]
|
||||||
[uxbox.services.users :as susers]
|
[uxbox.migrations]
|
||||||
[uxbox.services.projects :as sproj]
|
[uxbox.services.pages :as spag]
|
||||||
[uxbox.services.pages :as spag]))
|
[uxbox.services.projects :as sproj]
|
||||||
|
[uxbox.services.users :as susers]
|
||||||
|
[uxbox.util.transit :as t]))
|
||||||
|
|
||||||
(defn- mk-uuid
|
(defn- mk-uuid
|
||||||
[prefix i]
|
[prefix i]
|
||||||
|
@ -68,7 +70,15 @@
|
||||||
|
|
||||||
(defn -main
|
(defn -main
|
||||||
[& args]
|
[& args]
|
||||||
(mount/start)
|
(-> (mount/only #{#'uxbox.config/config
|
||||||
|
#'uxbox.config/secret
|
||||||
|
#'uxbox.db/datasource
|
||||||
|
#'uxbox.migrations/migrations
|
||||||
|
#'uxbox.media/assets-storage
|
||||||
|
#'uxbox.media/media-storage
|
||||||
|
#'uxbox.media/images-storage
|
||||||
|
#'uxbox.media/thumbnails-storage})
|
||||||
|
(mount/start))
|
||||||
(with-open [conn (db/connection)]
|
(with-open [conn (db/connection)]
|
||||||
(sc/atomic conn
|
(sc/atomic conn
|
||||||
(doseq [i (range num-users)]
|
(doseq [i (range num-users)]
|
||||||
|
|
Loading…
Reference in a new issue