console.info(colors.bold.cyan('> Browse to http://your-server:3000/ to configure your wiki!'))
console.info(colors.bold.cyan('> Browse to http://your-server:3000/ to configure your wiki! (Replaced your-server with the hostname or IP of your server!)'))
ora=require('ora')({text:'I\'ll wait until you\'re done ;)',color:'yellow',spinner:'pong'}).start()
ora=require('ora')({text:'I\'ll wait until you\'re done ;)',color:'yellow',spinner:'pong'}).start()
returnexec.stdout('node',['wiki','configure'],{
returnexec.stdout('node',['wiki','configure'],{
cwd:installDir
cwd:installDir
})
})
case'custom':
case'custom':
console.info(colors.bold.cyan('> Browse to http://your-server:'+ans.customport+'/ to configure your wiki!'))
console.info(colors.bold.cyan('> Browse to http://your-server:'+ans.customport+'/ to configure your wiki! (Replaced your-server with the hostname or IP of your server!)'))
ora=require('ora')({text:'I\'ll wait until you\'re done ;)',color:'yellow',spinner:'pong'}).start()
ora=require('ora')({text:'I\'ll wait until you\'re done ;)',color:'yellow',spinner:'pong'}).start()
console.info(colors.bold.cyan('> Open config.yml in your favorite editor. Then start Wiki.js using: node wiki start'))
console.info(colors.bold.cyan('> You can run the configuration wizard using command:')+colors.bold.white(' node wiki configure')+colors.bold.cyan('. Then start Wiki.js using command: ')+colors.bold.white('node wiki start'))
returnprocess.exit(0)
returnprocess.exit(0)
}
}
}).then(()=>{
}).then(()=>{
ora.succeed(colors.bold.green('Wiki.js has been configured successfully. It is now starting up and should be accessible very soon!'))
ora.succeed(colors.bold.green('Wiki.js has been configured successfully. It is now starting up and should be accessible very soon!'))
})
})
}else{
}else{
console.info(colors.cyan('[!] Non-interactive terminal detected. You may now manually edit config.yml and start Wiki.js by running: node wiki start'))
console.info(colors.cyan('[WARNING] Non-interactive terminal detected. You must manually start the configuration wizard using the command: node wiki configure'))