From d122feea8ebde3a0be6dcbd31511f4d95ff9a5a2 Mon Sep 17 00:00:00 2001 From: Bartosz Wojciechowski <32734780+hellobart@users.noreply.github.com> Date: Tue, 19 Nov 2019 10:11:36 +0100 Subject: [PATCH] Merge pull request #2 from smartcontractkit/169769188-Updated-package-start-script Updated package start script --- feeds-ui/README.md | 6 +++++- feeds-ui/package.json | 4 ++-- feeds-ui/server.js | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) 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}`) })