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

6
build
View file

@ -36,7 +36,7 @@ if [[ "$#" -lt 1 ]]; then
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}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;
}
###############################################################################