Streams Explorer was built using Vue.js alongside Nuxt.js. For a detailed explanation on how things work with NuxtJS, check out Nuxt.js docs.
Using npm:
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generateOr using yarn:
# install dependencies
$ yarn
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
# generate static project
$ yarn generateCreate a .env file by renaming .env.example.
-
SSH to the server,
cdinto the Streams-explorer directory. -
Pull changes from
mainbranch and check that a.envfile exists on the root of the project (list withls -asince it's hidden). -
Run
yarnto update dependencies and thenyarn buildto bundle the JS and create a static version in the /dist folder. Remember to check .env.example in case new environment variables were added. -
Kill the
nodeprocess that's serving the application (e.g.:ps -e|grep nodeandkill -9 <pid>). -
In detached mode (
screen), runyarn startto serve the newly built application, then exit withCtrl+AandCtrl+D.
That's it, your updated application should be available.
Check the Developer Console to identify any failing requests.
If the application builds successfully but the served /index.html points to non existent .js files, then you forgot to stop the previous node server (Step 4) and start a new node server to serve files from the new /dist folder (Step 5).