- ssh into server.
cd nbclient
.git checkout .
to revert the changes onsrc/app.js
.git pull
.npm install
if needed.- Edit
src/app.js
and select the proper environment: (e.g.Environments.prod
||Environments.dev
||Environments.test
) [line 32]. npx webpack
to generate the bundle.cd ..
rm -rf nb/public/client
thencp -r nbclient/public/ nb/public/client
.cd nb
.git pull
.npm install
if needed.npx sequelize db:migrate
if needed.npm run build
.cd ..
.sudo pm2 reload all
.