forked from mirrors/webxoss-core
improve README.mdd
This commit is contained in:
parent
e1f2cee2c8
commit
d088c2d0a9
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ WEBXOSS server can be runned in a browser tab, typically for easier debugging.
|
||||||
|
|
||||||
In this case, nodejs isn't needed. Just serve this project using `nginx`, `apache` or anything else.
|
In this case, nodejs isn't needed. Just serve this project using `nginx`, `apache` or anything else.
|
||||||
|
|
||||||
Then, open `http://localhost/path/to/your/project/test.html`. The browser tab you just opened is a real WEBXOSS server. You can open console to see what's inside it.
|
Then, open `127.0.0.1` (map to `webxoss-core` folder). The browser tab you just opened is a real WEBXOSS server. You can open console to see what's inside it.
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
|
|
||||||
|
|
2
test.js
2
test.js
|
@ -47,7 +47,7 @@ if (!noStaticServe) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
server.listen(port);
|
server.listen(port);
|
||||||
console.log('server listen on 127.0.0.1:' + port);
|
console.log('listen to 127.0.0.1:' + port);
|
||||||
}
|
}
|
||||||
// game server
|
// game server
|
||||||
var getArg = function(key) {
|
var getArg = function(key) {
|
||||||
|
|
Loading…
Reference in a new issue