diff --git a/feeds-ui/README.md b/feeds-ui/README.md index 73c09cb6764..29e41402f68 100644 --- a/feeds-ui/README.md +++ b/feeds-ui/README.md @@ -6,7 +6,7 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo In the project directory, you can run: -### `npm start` +### `npm start:dev` Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. @@ -29,6 +29,10 @@ Your app is ready to be deployed! See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. +### `npm run start` + +Launches the expressjs server that serve the `/build` folder + ## Env variables ``` diff --git a/feeds-ui/package.json b/feeds-ui/package.json index 2fbd0ffecbf..06ede143f87 100644 --- a/feeds-ui/package.json +++ b/feeds-ui/package.json @@ -29,8 +29,8 @@ "reselect": "^4.0.0" }, "scripts": { - "start:build": "npm run build && npm run server", - "start": "react-scripts start", + "start": "npm run server", + "start:dev": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", diff --git a/feeds-ui/server.js b/feeds-ui/server.js index 553347590b0..fa2619a6f97 100644 --- a/feeds-ui/server.js +++ b/feeds-ui/server.js @@ -14,5 +14,5 @@ app.get('/*', function(req, res) { }) app.listen(port, host, () => { - console.log('Server started...') + console.log(`Server started... on ${host}:${port}`) })