Skip to content

Commit

Permalink
Merge pull request #2 from smartcontractkit/169769188-Updated-package…
Browse files Browse the repository at this point in the history
…-start-script

Updated package start script
  • Loading branch information
hellobart authored and rupurt committed Jan 23, 2020
1 parent 3fa6764 commit 74feb76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion feeds-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
Expand All @@ -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

```
Expand Down
4 changes: 2 additions & 2 deletions feeds-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion feeds-ui/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ app.get('/*', function(req, res) {
})

app.listen(port, host, () => {
console.log('Server started...')
console.log(`Server started... on ${host}:${port}`)
})

0 comments on commit 74feb76

Please sign in to comment.