Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Replace static host ("127.0.0.1") with the one configured in "aviate.…
Browse files Browse the repository at this point in the history
…config.js"
  • Loading branch information
Julian van den Berkmortel committed Nov 3, 2021
1 parent 9de29c7 commit fed6b70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ async function dev() {

const server = new WebpackDevServer(compiler, devServer)
server
.listen(devServer.port, '127.0.0.1', () => {
.listen(devServer.port, devServer.host, () => {
console.log(chalk.green(`Started server on ${createDomain(devServer)}`))
console.log(chalk.yellow('Compiling...'))
})
.on('error', err => {
if (err.code === 'EADDRINUSE') {
console.error(
`Port ${devServer.port} is already in use. You are most likely running another instance of Aviate.`
`${devServer.host}:${devServer.port} is already in use. You are most likely running another instance of Aviate.`
)
process.exit(0)
return
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aviate",
"version": "1.0.1",
"version": "1.0.5",
"files": [
"lib",
"cli.js"
Expand Down

0 comments on commit fed6b70

Please sign in to comment.