Specify how to use inside server.js
script
This commit is contained in:
parent
75b24b0fe3
commit
575ae55189
13
README.md
13
README.md
@ -11,7 +11,7 @@ npm install --save-dev remotedev-server
|
|||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
Add in your app's `package.json`:
|
##### Add in your app's `package.json`:
|
||||||
|
|
||||||
```
|
```
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -21,7 +21,16 @@ Add in your app's `package.json`:
|
|||||||
|
|
||||||
So, you can start local server by running `npm run remotedev`.
|
So, you can start local server by running `npm run remotedev`.
|
||||||
|
|
||||||
If you install the package globally (not recommended) just run:
|
##### Import in your `server.js` script you use for starting a development server:
|
||||||
|
|
||||||
|
```js
|
||||||
|
var remotedev = require('remotedev-server');
|
||||||
|
remotedev({ hostname: 'localhost', port: 8000 });
|
||||||
|
```
|
||||||
|
|
||||||
|
So, you can start remotedev server together with your dev server.
|
||||||
|
|
||||||
|
##### Install the package globally (not recommended) just run:
|
||||||
|
|
||||||
```
|
```
|
||||||
remotedev --hostname=localhost --port=8000
|
remotedev --hostname=localhost --port=8000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user