mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 14:40:36 +03:00
chore: replace npm with yarn in readme
fix: change default port for examples server to 3000
This commit is contained in:
@@ -847,6 +847,6 @@ If this were not the case, you would have to instruct Babel to convert `default`
|
|||||||
|
|
||||||
# Examples
|
# 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`
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ fs.readdirSync(__dirname).forEach(file => {
|
|||||||
app.use(express.static(__dirname))
|
app.use(express.static(__dirname))
|
||||||
|
|
||||||
const host = process.env.HOST || 'localhost'
|
const host = process.env.HOST || 'localhost'
|
||||||
const port = process.env.PORT || 8080
|
const port = process.env.PORT || 3000
|
||||||
|
|
||||||
module.exports = app.listen(port, host, () => {
|
module.exports = app.listen(port, host, () => {
|
||||||
console.log(`Server listening on http://${host}:${port}, Ctrl+C to stop`)
|
console.log(`Server listening on http://${host}:${port}, Ctrl+C to stop`)
|
||||||
|
|||||||
Reference in New Issue
Block a user