Skip to content

Commit

Permalink
Merge pull request #63 from matthewmorgan/master
Browse files Browse the repository at this point in the history
Update README to explain serving production build
  • Loading branch information
iroy2000 authored Jan 3, 2019
2 parents 048f8fe + e13f33e commit 855a47b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,16 @@ React Redux Boilerplate supports production preview, which means that you can ru

1. Run `npm run build` and wait until it is done
2. Go to the project `docroot`, you will see a `index.html` (template is customizable, please read `Developing Template` section)
3. Open that `index.html` in your browser, and that is the build version that just got generated
3. Serve the build directory, for example like so:

```bash
npm i -g http-server
cd docroot
http-server
```
By default http-server will serve your production build at port 8080. Docs are [here](https://www.npmjs.com/package/http-server).

4. Navigate to [that address](http://localhost:8080) to see your build.

That's very easy, isn't it?

Expand Down

0 comments on commit 855a47b

Please sign in to comment.