Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 4d42bbd

Browse files
authored
Update start up scripts (#443)
1 parent 2c5afdb commit 4d42bbd

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

scripts/pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ function packApps() {
619619
} else {
620620
// Make a soft link to the main JS file node.js should call
621621
if (appJSON !== 'main.js')
622-
execSync(`ln -sf ${distDir}/apps/current_app/${appJSON} ${distDir}/apps/current_app/main.js`);
622+
execSync(`ln -srf ${distDir}/apps/current_app/${appJSON} ${distDir}/apps/current_app/main.js`);
623623
}
624624
const certScript = `${distDir}/apps/current_app/initcert.js`;
625625
if (fs.existsSync(certScript))

scripts/release/daemon-bin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ case $startStop in
177177
;;
178178
app )
179179
cd ${OWT_HOME}/apps/current_app/
180-
nohup nice -n ${OWT_NICENESS} node main.js \
180+
nohup nice -n ${OWT_NICENESS} node . \
181181
> "${stdout}" 2>&1 </dev/null &
182182
echo $! > ${pid}
183183
;;

scripts/release/daemon-mcu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ case $startStop in
9898
case ${command} in
9999
management-api )
100100
cd ${OWT_HOME}/management_api
101-
nohup nice -n ${OWT_NICENESS} node api.js \
101+
nohup nice -n ${OWT_NICENESS} node . \
102102
> "${stdout}" 2>&1 </dev/null &
103103
echo $! > ${pid}
104104
;;
@@ -185,7 +185,7 @@ case $startStop in
185185
;;
186186
app )
187187
cd ${OWT_HOME}/apps/current_app/
188-
nohup nice -n ${OWT_NICENESS} node main.js \
188+
nohup nice -n ${OWT_NICENESS} node . \
189189
> "${stdout}" 2>&1 </dev/null &
190190
echo $! > ${pid}
191191
;;

source/management_api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"engine": {
1616
"node": "8.15.0"
1717
},
18-
"bin": "server.js",
18+
"main": "api.js",
19+
"bin": "api.js",
1920
"pkg": {
2021
"assets": [
2122
"node_modules*"

0 commit comments

Comments
 (0)