This repository was archived by the owner on Oct 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -619,7 +619,7 @@ function packApps() {
619
619
} else {
620
620
// Make a soft link to the main JS file node.js should call
621
621
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` ) ;
623
623
}
624
624
const certScript = `${ distDir } /apps/current_app/initcert.js` ;
625
625
if ( fs . existsSync ( certScript ) )
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ case $startStop in
177
177
;;
178
178
app )
179
179
cd ${OWT_HOME} /apps/current_app/
180
- nohup nice -n ${OWT_NICENESS} node main.js \
180
+ nohup nice -n ${OWT_NICENESS} node . \
181
181
> " ${stdout} " 2>&1 < /dev/null &
182
182
echo $! > ${pid}
183
183
;;
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ case $startStop in
98
98
case ${command} in
99
99
management-api )
100
100
cd ${OWT_HOME} /management_api
101
- nohup nice -n ${OWT_NICENESS} node api.js \
101
+ nohup nice -n ${OWT_NICENESS} node . \
102
102
> " ${stdout} " 2>&1 < /dev/null &
103
103
echo $! > ${pid}
104
104
;;
@@ -185,7 +185,7 @@ case $startStop in
185
185
;;
186
186
app )
187
187
cd ${OWT_HOME} /apps/current_app/
188
- nohup nice -n ${OWT_NICENESS} node main.js \
188
+ nohup nice -n ${OWT_NICENESS} node . \
189
189
> " ${stdout} " 2>&1 < /dev/null &
190
190
echo $! > ${pid}
191
191
;;
Original file line number Diff line number Diff line change 15
15
"engine" : {
16
16
"node" : " 8.15.0"
17
17
},
18
- "bin" : " server.js" ,
18
+ "main" : " api.js" ,
19
+ "bin" : " api.js" ,
19
20
"pkg" : {
20
21
"assets" : [
21
22
" node_modules*"
You can’t perform that action at this time.
0 commit comments