mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Reorganize files.
This commit is contained in:
parent
67e7a75b9c
commit
00a56f6aaa
4 changed files with 0 additions and 0 deletions
28
stacksmith/user-scripts/run.sh
Executable file
28
stacksmith/user-scripts/run.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
readonly CONF=/build/env.config
|
||||
|
||||
source ${CONF}
|
||||
|
||||
# wait for DB
|
||||
check_db() {
|
||||
mongo $MONGO_URL --eval "db.runCommand( { connectionStatus: 1} )" --quiet | python -c 'import json,sys;obj=json.load(sys.stdin);code = 0 if obj["ok"]==1 else 1; sys.exit(code);'
|
||||
}
|
||||
until check_db; do
|
||||
period=5
|
||||
echo "Cannot connect to db, waiting ${period} seconds before trying again..."
|
||||
sleep ${period}
|
||||
done
|
||||
|
||||
cd /build
|
||||
echo "starting the wekan service..."
|
||||
#---------------------------------------------------------------------
|
||||
# https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132
|
||||
# Add more Node heap:
|
||||
export NODE_OPTIONS="--max_old_space_size=4096"
|
||||
# Add more stack:
|
||||
#bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js"
|
||||
bash -c "ulimit -s 65500; exec node main.js"
|
||||
#---------------------------------------------------------------------
|
||||
#node main.js
|
||||
Loading…
Add table
Add a link
Reference in a new issue