Skip to content

Commit

Permalink
Add patch:hosts command and update README (#127)
Browse files Browse the repository at this point in the history
mhuth authored Nov 22, 2023
1 parent 42dfa1a commit 9f0fa4e
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -10,16 +10,11 @@ To setup the hosts file run following command:
npm run patch:hosts
```

If this command throws an error run it as a `sudo`:
```bash
sudo npm run patch:hosts
```

## Getting started

1. ```npm install```

2. ```PROXY=true npm run start:beta```
2. ```npm run start:beta```

3. Open browser in URL listed in the terminal output

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@
"lint:js": "eslint config src",
"lint:js:fix": "eslint config src --fix",
"lint:sass": "stylelint 'src/**/*.scss' --config .stylelintrc.json",
"patch:hosts": "curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-proxy/master/scripts/patch-etc-hosts.sh -o - | sudo sh -",
"start": "npm run start:proxy",
"start:beta": "npm run start:proxy:beta",
"start:proxy": "NODE_ENV=development webpack serve --config config/dev.webpack.config.js",

0 comments on commit 9f0fa4e

Please sign in to comment.