mirror of
https://gh-proxy.org/https://github.com/klinsmaya/open-connector.git
synced 2026-11-08 01:16:52 +08:00
21 lines
228 B
Bash
21 lines
228 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
if [ "$#" -eq 0 ]; then
|
|
set -- serve
|
|
fi
|
|
|
|
case "$1" in
|
|
serve)
|
|
shift
|
|
exec node src/server/index.ts "$@"
|
|
;;
|
|
migrate)
|
|
shift
|
|
exec node scripts/runtime-data.ts migrate "$@"
|
|
;;
|
|
*)
|
|
exec "$@"
|
|
;;
|
|
esac
|