Fix ttn app server action in build script

This commit is contained in:
Starbeamrainbowlabs 2019-07-09 13:13:11 +01:00
parent 46bb1d9047
commit 3f1cf278e9
1 changed files with 5 additions and 5 deletions

10
build
View File

@ -34,9 +34,9 @@ if [[ "$#" -lt 1 ]]; then
echo -e " ./build ${CTOKEN}{action}${RS} ${CTOKEN}{action}${RS} ${CTOKEN}{action}${RS} ...";
echo -e "";
echo -e "${CSECTION}Available actions${RS}";
echo -e " ${CACTION}setup${RS} - Perform initial setup";
echo -e " ${CACTION}render${RS} - Render the report";
echo -e " ${CACTION}server${RS} - Execute the Node.js server.";
echo -e " ${CACTION}setup${RS} - Perform initial setup";
echo -e " ${CACTION}render${RS} - Render the report";
echo -e " ${CACTION}server-ttn${RS} - Execute the Node.js TTN receiver.";
echo -e "";
exit 1;
@ -107,8 +107,8 @@ task_setup() {
stage_end 0;
}
task_server() {
execute node --experimental-modules ./server/index.mjs $@;
task_server-ttn() {
execute node --experimental-modules ./server/index.mjs ttn-app-server;
}
###############################################################################