mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fixed bug: nodester do not have env varible HOME
This commit is contained in:
parent
82c7c0a04d
commit
54a1989a6d
1 changed files with 3 additions and 2 deletions
|
|
@ -167,8 +167,9 @@ CloudServer.start=function()
|
|||
CloudServer.IP;
|
||||
|
||||
/* if Cloud Server started on jitsu */
|
||||
if(!process.env.HOME.indexOf('/opt/haibu')){
|
||||
this.IP = '0.0.0.0';
|
||||
if(process.env.HOME &&
|
||||
!process.env.HOME.indexOf('/opt/haibu')){
|
||||
this.IP = '0.0.0.0';
|
||||
}
|
||||
/* server mode or testing mode */
|
||||
if(!process.argv[2] && this.Config.server){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue