SpaceNinjaServer/docker-entrypoint.sh
Sainan 3c1b621f3f
All checks were successful
Build / build (pull_request) Successful in 1m28s
add command line --configPath and --dev arguments
2025-06-21 00:06:30 +02:00

9 lines
255 B
Bash
Executable File

#!/bin/bash
set -e
if [ ! -f conf/config.json ]; then
jq --arg value "mongodb://openwfagent:spaceninjaserver@mongodb:27017/" '.mongodbUrl = $value' /app/config.json.example > /app/conf/config.json
fi
exec npm run start -- --configPath conf/config.json