Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
d3febcdc
Commit
d3febcdc
authored
Oct 02, 2019
by
les
Browse files
minor
parent
f629b0a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/index.js
View file @
d3febcdc
...
...
@@ -3,6 +3,7 @@ const { Nuxt, Builder } = require('nuxt')
// Import and Set Nuxt.js options
const
nuxt_config
=
require
(
'
../nuxt.config.js
'
)
const
config
=
require
(
'
config
'
)
const
consola
=
require
(
'
consola
'
)
async
function
main
()
{
nuxt_config
.
server
=
config
.
server
...
...
@@ -18,6 +19,7 @@ async function main () {
await
nuxt
.
ready
()
}
nuxt
.
listen
()
consola
.
info
(
'
Listen on %s:%d , visit me here => %s
'
,
config
.
server
.
host
,
config
.
server
.
port
,
config
.
baseurl
)
// close connections/port/unix socket
function
shutdown
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment