forked from OpenWF/SpaceNinjaServer
We still need to address the database as 'mongodb' instead of '127.0.0.1' inside of the container, but otherwise the MongoDB data folder can simply be copied over. Existing setups shouldn't be affected by this change. Reviewed-on: OpenWF/SpaceNinjaServer#2944 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
9 lines
230 B
Bash
Executable File
9 lines
230 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ ! -f conf/config.json ]; then
|
|
jq --arg value "mongodb://mongodb:27017/openWF" '.mongodbUrl = $value' /app/config-vanilla.json > /app/conf/config.json
|
|
fi
|
|
|
|
exec npm run raw -- --configPath conf/config.json
|