Open-source IoT Platform - Device management, data collection, processing and visualization.
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.
 
 
 
 
 
 

20 lines
506 B

#!/bin/bash
#
# SPDX-FileCopyrightText: Copyright ThingsBoard, Inc.
# SPDX-License-Identifier: BUSL-1.1
#
echo "Starting '${project.name}' ..."
CONF_FOLDER="${pkg.installFolder}/conf"
configfile=${pkg.name}.conf
source "${CONF_FOLDER}/${configfile}"
cd ${pkg.installFolder}
export CHROME_EXECUTABLE=$(node -e "console.log(require('playwright-chromium').chromium.executablePath());")
# This will forward this PID 1 to the node.js and forward SIGTERM for graceful shutdown as well
exec node server.js