2021-11-03 07:06:46 -05:00
|
|
|
#!/usr/bin/env bash
|
2019-12-09 10:29:26 -05:00
|
|
|
|
2022-04-04 03:52:50 -05:00
|
|
|
export PENPOT_HOST=devenv
|
|
|
|
export PENPOT_TENANT=dev
|
2022-12-22 10:28:06 -05:00
|
|
|
export PENPOT_FLAGS="$PENPOT_FLAGS enable-backend-asserts enable-audit-log enable-transit-readable-response enable-demo-users disable-secure-session-cookies enable-smtp enable-webhooks"
|
2021-01-29 05:00:54 -05:00
|
|
|
|
2020-09-21 09:02:37 -05:00
|
|
|
set -ex
|
2019-12-09 10:29:26 -05:00
|
|
|
|
2021-10-20 04:18:28 -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
|