0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00
penpot/backend/scripts/start-dev

24 lines
426 B
Text
Raw Normal View History

#!/usr/bin/env bash
2019-12-09 10:29:26 -05:00
export PENPOT_FLAGS="$PENPOT_FLAGS enable-asserts"
2021-01-29 05:00:54 -05:00
set -ex
2019-12-09 10:29:26 -05:00
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