Fix hardcoded port number

This commit is contained in:
Frank Li 2017-07-12 14:43:24 -07:00
parent 4fd8d5a105
commit ea4a4f6fe3
2 changed files with 3 additions and 3 deletions

View file

@ -378,7 +378,7 @@ function execute(port) {
app.get(/\/[^\.]*\/?$/, (req, res) => {
if (req.path.toString().endsWith("/")) {
request.get(
"http://localhost:3000" + req.path + "index.html",
"http://localhost:" + port + req.path + "index.html",
(err, response, body) => {
if (!err) {
res.send(body);
@ -387,7 +387,7 @@ function execute(port) {
);
} else {
request.get(
"http://localhost:3000" + req.path + "/index.html",
"http://localhost:" + port + req.path + "/index.html",
(err, response, body) => {
if (!err) {
res.send(body);

View file

@ -20,7 +20,7 @@
"shelljs": "^0.7.8"
},
"name": "docusaurus",
"version": "1.0.0-alpha.13",
"version": "1.0.0-alpha.14",
"bin": {
"docusaurus-start": "./lib/start-server.js",
"docusaurus-build": "./lib/build-files.js",