mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-18 22:27:12 -04:00
17 lines
628 B
Plaintext
17 lines
628 B
Plaintext
#!/usr/bin/with-contenv /bin/bash
|
|
|
|
cd /srv/ledgersmb
|
|
|
|
# start ledgersmb
|
|
# --preload-app allows application initialization to kill the entire
|
|
# starman instance (instead of just the worker, which will immediately
|
|
# get restarted) on error; it also has a positive effect on memory use
|
|
|
|
LSMB_CONFIG_FILE=${LSMB_CONFIG_FILE:-./local/conf/ledgersmb.yaml}
|
|
export LSMB_CONFIG_FILE
|
|
echo '--------- LEDGERSMB CONFIGURATION: ledgersmb.conf'
|
|
cat ${LSMB_CONFIG_FILE}
|
|
echo '--------- LEDGERSMB CONFIGURATION --- END'
|
|
|
|
exec starman --listen 0.0.0.0:5762 --workers ${LSMB_WORKERS:-5} -I lib -I old/lib --preload-app bin/ledgersmb-server.psgi
|