mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Improve fixtures and media loader entry points.
This commit is contained in:
@@ -10,9 +10,8 @@ This is a development feature that allows populate the database with a
|
||||
good amount of random content (usually used for just test the
|
||||
application or perform performance tweaks on queries).
|
||||
|
||||
|
||||
In order to load fixtures, enter to the REPL environment executing the
|
||||
`bin/repl` script, and then execute `(uxbox.fixtures/-main)`.
|
||||
`bin/repl` script, and then execute `(uxbox.fixtures/run :small)`.
|
||||
|
||||
You also can execute this as a standalone script with:
|
||||
|
||||
|
||||
@@ -36,6 +36,18 @@ respective defaults):
|
||||
- `UXBOX_DEBUG_HUMANIZE_TRANSIT=true`
|
||||
|
||||
|
||||
## REPL ##
|
||||
|
||||
The production environment by default starts a server REPL where you
|
||||
can connect and perform diagnosis operations. For this you will need
|
||||
`netcat` or `telnet` installed in the server.
|
||||
|
||||
```bash
|
||||
$ rlwrap netcat localhost 5555
|
||||
user=>
|
||||
```
|
||||
|
||||
|
||||
## Collections import ##
|
||||
|
||||
This is the way we can preload default collections of images and icons to the
|
||||
@@ -64,3 +76,10 @@ Then, you need to execute:
|
||||
```bash
|
||||
clojure -Adev -m uxbox.media-loader ../path/to/config.edn
|
||||
```
|
||||
|
||||
If you have a REPL access to the running process, you can execute it from there:
|
||||
|
||||
```clojure
|
||||
(require 'uxbox.media-loader)
|
||||
@(uxbox.media-loader/run "/path/to/config.edn")
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user