0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00
penpot/backend/scripts/start-dev

33 lines
537 B
Text
Raw Normal View History

2019-12-09 16:29:26 +01:00
#!/bin/sh
2021-01-29 11:00:54 +01:00
export PENPOT_ASSERTS_ENABLED=true
set -ex
2019-12-09 16:29:26 +01:00
if [ ! -e ~/.fixtures-loaded ]; then
2019-12-09 16:29:26 +01:00
echo "Loading fixtures..."
clojure -Adev -X:fn-fixtures
touch ~/.fixtures-loaded
2019-12-09 16:29:26 +01:00
fi
if [ "$1" = "--watch" ]; then
echo "Start Watch..."
clojure -A:dev -M -m app.main &
PID=$!
npx nodemon \
--watch src \
--watch ../common \
--ext "clj" \
--signal SIGKILL \
--exec 'echo "(user/restart)" | nc -N localhost 6062'
kill -9 $PID
else
clojure -A:dev -M -m app.main
fi
2019-12-09 16:29:26 +01:00