Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

(3.1) if you are using RackHD < version 2.0.0, you can use Download latest build 

        Use Git-Bash 'vagrant ssh dev" to login RackHD

Code Block
cd /var/renasar/on-http/static/http/
sudo wget https://github.com/RackHD/on-web-ui/archive/gh-pages.zip
sudo unzip gh-pages.zip
sudo mv on-web-ui-gh-pages on-web-ui
cd ~ 

Then you can use http://localhost:9090/on-web-ui/


(3.2) Build On-Web-UI from source code

        Use Git-Bash 'vagrant ssh dev" to login RackHD

NOTE: it requires "node version" >=6  to successfully build the src code. (by default in RackHD dev env, node 4.8 can't fully successfully build all the css files.)

Code Block
cd ~
git clone https://github.com/RackHD/on-web-ui.git
cd on-web-ui
npm install
npm run build         # Build `static/monorail.css` & `static/monorail.js` for production.
npm run build-css     # Build minified `static/monorail.css` from `less/monorail.less`.
npm run build-js      # Build production `static/monorail.js`.



after above steps, the on-web-ui application will locate under on-web-ui/static folders.

because the RackHD vagrant box is build from deb package, so the HTTP directory is under /var/renasr/on-http/static/http

...