Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added note about builds and fixed docs on setting ENV #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ On Windows the "~" part of the path will be replaced by something like "C:\Users

You should now be able to point your browser to [http://localhost:8082/](http://localhost:8082/).

**Note:** *The service-worker is only included in the production build. [More info here](http://docs.sencha.com/cmd/guides/progressive_web_apps.html#progressive_web_apps_-_example_limiting_the_number_of_cached_responses_for_an_api_call).*

## Run Production Build

To run a production build, run these commands:

cd client
sencha app build
cd ../server
NODE_ENV=production npm start
ENV=production npm start

This will run a production build and start the server with a path to the production build.
You should now be able to point your browser to [http://localhost:8082/](http://localhost:8082/).
Expand Down