Skip to content

Commit

Permalink
Merge pull request #2983 from adonispuente/patch-1
Browse files Browse the repository at this point in the history
Update README.md for running locally
  • Loading branch information
Hyperkid123 authored Dec 17, 2024
2 parents ecc17a4 + 3a97495 commit dccba35
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,17 @@ To run a script you have to install dependencies `npm install`. Then you are fre

You can spin chrome locally together with other applications. Use `LOCAL_APPS` to list the locally deployed applications.

#### Example 1 (using LOCAL_APPS)
#### Example 1 (using fec static)

For illustration, to deploy Advisor together with Insights Chrome, you would require to

1. Run Advisor on any available port with `npm run start -- --port=8004`,
2. Run Chrome and list the Advisor's port: `LOCAL_APPS=advisor:8004~http npm run dev`.
1. Ensure Advisor has the 'static: fec static' script
2. Run Advisor with `npm run static`
3. In Chrome, add advisor to the routes portion inside webpack.config.js `'/apps/advisor': {
host: 'http://0.0.0.0:8003',
},`
4. In Chrome then run `npm run dev`
- If youd like to run against a different env, this can be altered with the env variable, ex. 'prod-stable'.

#### Example 2 (using devServer route)

Expand Down

0 comments on commit dccba35

Please sign in to comment.