From ec82e1ef9e2c0affe7815d04d646a4144f274d95 Mon Sep 17 00:00:00 2001 From: pimlie Date: Mon, 11 Feb 2019 00:15:47 +0100 Subject: [PATCH] chore: replace npm with yarn in readme fix: change default port for examples server to 3000 --- README.md | 4 ++-- examples/server.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 47d63e2..4a9d35a 100644 --- a/README.md +++ b/README.md @@ -847,6 +847,6 @@ If this were not the case, you would have to instruct Babel to convert `default` # Examples -To run the examples; clone this repository & run `cd examples && npm install` in the root directory, and then run `npm run start`. Head to http://localhost:8080. +To run the examples locally; clone this repository and run `cd examples && yarn install` in the root directory, then run `yarn start`. Head to http://localhost:3000 or run with `HOST=0.0.0.0 PORT=8080 yarn start` to change host or port -If you would like to help to develop vue-meta then run `npm install` both in the root and examples dir and run `npm run dev` +If you would like to help to develop vue-meta then run `yarn install` both in the root and examples dir and run `yarn dev` diff --git a/examples/server.js b/examples/server.js index ad7a331..b54f093 100644 --- a/examples/server.js +++ b/examples/server.js @@ -25,7 +25,7 @@ fs.readdirSync(__dirname).forEach(file => { app.use(express.static(__dirname)) const host = process.env.HOST || 'localhost' -const port = process.env.PORT || 8080 +const port = process.env.PORT || 3000 module.exports = app.listen(port, host, () => { console.log(`Server listening on http://${host}:${port}, Ctrl+C to stop`)