https://github.com/redhataccess/rhstatus
https://github.com/redhataccess/rhstatus
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/redhataccess/rhstatus
- Owner: redhataccess
- Created: 2015-07-17T12:21:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-17T12:45:39.000Z (almost 11 years ago)
- Last Synced: 2025-03-23T04:17:17.469Z (about 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Red Hat Status
Visualize uptime across various Red Hat sites.
## Local Installation and development
```bash
npm install
# In one console
npm run hot-dev-server
# In another console
npm run start-dev
# Navigate to http://foo.redhat.com/status
```
## Hot Module Replacement development server
``` text
# start the webpack-dev-server in HMR mode
npm run hot-dev-server
# wait for the first compilation is successful
# Ensure Red Hat resources are proxies through httpd or nginx
# in another terminal/console
# start the node.js server in development mode
npm run start-dev
# open this url in your browser
http://foo.redhat.com/labs/jvmpeg
```
The configuration is `webpack-hot-dev-server.config.js`.
It automatically recompiles when files are changed. When a hot-replacement-enabled file is changed (i. e. stylesheets or React components) the module is hot-replaced. If Hot Replacement is not possible the page is refreshed.
Hot Module Replacement has a performance impact on compilation.
## Production compilation and server
``` text
# build the client bundle and the prerendering bundle
npm run build
# start the node.js server in production mode
npm run start
# open this url in your browser
http://foo.redhat.com/labs/jvmpeg
```
The configuration is `webpack-production.config.js`.
The server is at `lib/server.js`
The production setting builds two configurations: one for the client (`build/public`) and one for the serverside prerendering (`build/prerender`).
## Build visualization
After a production build you may want to visualize your modules and chunks tree.
Use the [analyse tool](http://webpack.github.io/analyse/) with the file at `build/stats.json`.
## Handling deployment to ITOS
```
gg c Message
git tag x.y.z && git push && git push --tags labsdev master && git push --tags gitlab master
```
## License
MIT (http://www.opensource.org/licenses/mit-license.php)