2021-11-03 13:06:46 +01:00
|
|
|
#!/usr/bin/env bash
|
2019-12-09 16:29:26 +01:00
|
|
|
|
2022-04-04 10:52:50 +02:00
|
|
|
export PENPOT_HOST=devenv
|
|
|
|
export PENPOT_TENANT=dev
|
2023-03-16 19:36:18 +01:00
|
|
|
export PENPOT_FLAGS="\
|
|
|
|
$PENPOT_FLAGS \
|
|
|
|
enable-prepl-server \
|
|
|
|
enable-urepl-server \
|
|
|
|
enable-webhooks \
|
|
|
|
enable-backend-asserts \
|
|
|
|
enable-audit-log \
|
|
|
|
enable-transit-readable-response \
|
|
|
|
enable-demo-users \
|
|
|
|
enable-fdata-storage-pointer-map \
|
|
|
|
enable-fdata-storage-objets-map \
|
|
|
|
disable-secure-session-cookies \
|
|
|
|
enable-smtp \
|
2023-09-26 14:54:10 +02:00
|
|
|
enable-access-tokens \
|
|
|
|
disable-file-validation";
|
2021-01-29 11:00:54 +01:00
|
|
|
|
2020-09-21 16:02:37 +02:00
|
|
|
set -ex
|
2019-12-09 16:29:26 +01:00
|
|
|
|
2021-10-20 11:18:28 +02: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
|