u
This commit is contained in:
parent
69d62271a1
commit
a4ea1f2914
38
server.js
38
server.js
@ -89,10 +89,10 @@ if (typeof wo.envi.ssl === 'string') {
|
||||
.createServer(server)
|
||||
.listen(portHttp, function (err) {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
} else {
|
||||
console.log(
|
||||
`[${new Date().toJSON()}] Server listening on ${wo.envi.protocol}://${wo.envi.host}:${portHttp} for ${wo.envi.prodev} environment`
|
||||
console.log({time: new Date().toJSON()},
|
||||
`Server listening on ${wo.envi.protocol}://${wo.envi.host}:${portHttp} for ${wo.envi.prodev} environment`
|
||||
)
|
||||
}
|
||||
})
|
||||
@ -110,10 +110,10 @@ if (typeof wo.envi.ssl === 'string') {
|
||||
)
|
||||
.listen(portHttps, function (err) {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
} else {
|
||||
console.log(
|
||||
`[${new Date().toJSON()}] Server listening on ${wo.envi.protocol}://${wo.envi.host}:${portHttps} for ${wo.envi.prodev} environment`
|
||||
console.log({time: new Date().toJSON()},
|
||||
`Server listening on ${wo.envi.protocol}://${wo.envi.host}:${portHttps} for ${wo.envi.prodev} environment`
|
||||
)
|
||||
}
|
||||
})
|
||||
@ -122,7 +122,7 @@ if (typeof wo.envi.ssl === 'string') {
|
||||
let portHttps = wo.envi.port?.portHttps || 443
|
||||
// if (wo.wo.envi.ssl.type==='greenlock') {
|
||||
// greenlock.listen(portHttp, portHttps, function (err) {
|
||||
// if (err) console.log(err)
|
||||
// if (err) console.error(err)
|
||||
// else console.log(`Server listening on [${wo.wo.envi.protocol}] http=>https://${wo.wo.envi.host}:${portHttp}=>${portHttps} for ${server.settings.env} environment`)
|
||||
// })
|
||||
// }else {
|
||||
@ -134,10 +134,10 @@ if (typeof wo.envi.ssl === 'string') {
|
||||
)
|
||||
.listen(portHttp, function (err) {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
} else {
|
||||
console.log(
|
||||
`[${new Date().toJSON()}] Server redirecting from http://${wo.envi.host}:${portHttp} for ${
|
||||
console.log({time: new Date().toJSON()},
|
||||
`Server redirecting from http://${wo.envi.host}:${portHttp} for ${
|
||||
wo.envi.prodev
|
||||
} environment`
|
||||
)
|
||||
@ -154,10 +154,10 @@ if (typeof wo.envi.ssl === 'string') {
|
||||
)
|
||||
.listen(portHttps, function (err) {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
} else {
|
||||
console.log(
|
||||
`[${new Date().toJSON()}] Server listening on https://${wo.envi.host}:${portHttps} for ${
|
||||
console.log({time: new Date().toJSON()},
|
||||
`Server listening on https://${wo.envi.host}:${portHttps} for ${
|
||||
wo.envi.prodev
|
||||
} environment`
|
||||
)
|
||||
@ -172,10 +172,10 @@ if (typeof wo.envi.ssl === 'string') {
|
||||
})
|
||||
.listen(portHttp, function (err) {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
} else {
|
||||
console.log(
|
||||
`[${new Date().toJSON()}] Server listening on ${wo.envi.protocol}://${wo.envi.host}:${portHttp} for ${wo.envi.prodev} environment`
|
||||
console.log({time: new Date().toJSON()},
|
||||
`Server listening on ${wo.envi.protocol}://${wo.envi.host}:${portHttp} for ${wo.envi.prodev} environment`
|
||||
)
|
||||
}
|
||||
})
|
||||
@ -198,10 +198,10 @@ if (typeof wo.envi.ssl === 'string') {
|
||||
})
|
||||
proxy.listen(portHttps, function (err) {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
} else {
|
||||
console.log(
|
||||
`[${new Date().toJSON()}] Server listening on ${wo.envi.protocol}://${wo.envi.host}:${portHttps} for ${wo.envi.prodev} environment`
|
||||
console.log({time: new Date().toJSON()},
|
||||
`Server listening on ${wo.envi.protocol}://${wo.envi.host}:${portHttps} for ${wo.envi.prodev} environment`
|
||||
)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user