Browse Source

无JIRA任务 npm start起不来

es6
windy 6 years ago
parent
commit
1657a26d6a
  1. 2
      server.js

2
server.js

@ -6,7 +6,7 @@ const fs=require("fs");
const app = express(); const app = express();
const port = 3000; const port = 3000;
app.use(express.static("./dist/")); app.use(express.static("./"));
app.listen(port, function() { app.listen(port, function() {
console.log("server start"); console.log("server start");
open('http://localhost:' + port + '/index.html'); open('http://localhost:' + port + '/index.html');

Loading…
Cancel
Save