mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-16 08:20:34 +03:00
feat: major refactor, cleanup and jest tests
This commit is contained in:
+4
-2
@@ -24,7 +24,9 @@ fs.readdirSync(__dirname).forEach(file => {
|
||||
|
||||
app.use(express.static(__dirname))
|
||||
|
||||
const host = process.env.HOST || 'localhost'
|
||||
const port = process.env.PORT || 8080
|
||||
module.exports = app.listen(port, () => {
|
||||
console.log(`Server listening on http://localhost:${port}, Ctrl+C to stop`)
|
||||
|
||||
module.exports = app.listen(port, host, () => {
|
||||
console.log(`Server listening on http://${host}:${port}, Ctrl+C to stop`)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user