How-to

Deploy an always-on process

Live calls need a server that stays running, so run the app as a long-lived process behind HTTPS.

Build and start

PM2 keeps the app running and restarts it after a crash.

npm install
npm run build
node scripts/build-plugin-backend.js
pm2 start ecosystem.config.cjs

Put it behind HTTPS

Use a reverse proxy such as Nginx in front of the app, with a valid certificate on your domain.

Keep WebSockets open

Allow WebSocket upgrades through the proxy so live call audio can connect.

Check it is live

Telephony and payment providers must be able to reach your APP_URL. Then confirm the server responds:

curl https://your-domain.com/health