You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
674 B
25 lines
674 B
#!/usr/bin/env bash
|
|
|
|
# Detect POSIX Environment
|
|
os=`uname -s | tr '[:upper:]' '[:lower:]'`
|
|
arch=`uname -m | sed -r 's/x86_64/x64/'`
|
|
#echo $os
|
|
#echo $arch
|
|
|
|
rundir=`echo $0 |sed -r 's/\/start-server\.sh$//'`
|
|
#echo $rundir
|
|
|
|
node_ver='v14.17.1'
|
|
node_path="$rundir/nodejs/node-$node_ver-$os-$arch/bin/node"
|
|
npm_path="$rundir/nodejs/node-$node_ver-$os-$arch/bin/npm"
|
|
export PATH="$rundir/nodejs/node-$node_ver-$os-$arch/bin:"$PATH
|
|
|
|
# My need to grow if client Payload get larger
|
|
max_http_header_size='40000000000'
|
|
|
|
if [ -x "$node_path" ]; then
|
|
$node_path --max-http-header-size $max_http_header_size $rundir/index.js
|
|
else
|
|
echo "ERROR: Missing Node.JS: $node_path"
|
|
exit 1
|
|
fi
|