SSH to your PI
Add your certficates to certs
folder
Install pm2 by running `npm install -g pm2@latest"
From project root run pm2 start pm2/ecosystem.config.js
Use tmux to create a persistent session:
-
In terminal run
tmux
-
Start your app
npm run start
-
To detach tmux session (so your app does not stop running after SSH session is done with),
Ctrl+b
, thend
-
To return to your session, execute
tmux attach -t 0