Versions Compared

Key

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

...

If you get "error-1698-28000-access-denied-for-user-rootlocalhost" check this
https://stackoverflow.com/questions/39281594/error-1698-28000-access-denied-for-user-rootlocalhost

Copy frontend to nginx root web dir

Code Block
languagebash
themeRDark
~/onap-bbs-fe-be/bss-fe$ sudo cp -fr * /var/www/html/

Modify the IP of the backend server configured in the fe (dirty hack to avoid rebuilding the frontend)

Build bss-fe



Build Setup
# install dependencies
npm install

# configure
Ensure "baseURL" is set to the correct IP in config/prod.env.js

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test
For a detailed explanation on how things work, check out the guide and docs for vue-loader.


Copy frontend to nginx root web dir

Code Block
languagebash
themeRDark
~/onap-bbs-fe-be/bss-fe$ sudo cp -fr * /var/www/html/
Code Block
languagebash
themeRDark
vim /var/www/html/static/js/app.67221ea8b6f560de82d3.js 
search for "baseURL" and configure the IP e.g. baseURL:"http://172.30.0.130:5000"


Open app.py and set the template_id / service_id UUID, and user

...