Files
sample-node-api/scripts/start-sample-node-api.sh
Nakul Manchanda cac246acf5 changed readme, startup script, yml file, IBM-850
Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
2019-03-25 15:52:39 -04:00

18 lines
330 B
Bash

#!/bin/sh
# find node bin
if [ ! -z "$NODE_HOME" ]; then
NODE_BIN=${NODE_HOME}/bin/node
else
echo "Error: cannot find node bin, node app did not start"
exit 1
fi
# get current script directory
SCRIPT_DIR=$(dirname "$0")
# get to new node app source directory
cd "$SCRIPT_DIR/.."
# start service
$NODE_BIN server/app.js &