Skip to Content
Bitcoin 9to5Deployment

Deployment

Production uses pm2 for process management. Config lives in ecosystem.config.cjs.

Commands

CommandPurpose
npm installInstall dependencies
PRIVATE_KEY="0x..." node bot.jsRun locally
node bot.js --closeClose any open position
./scripts/push_rsync.shDeploy to remote server
./scripts/remote_logs.shView remote logs

Deploy

./scripts/push_rsync.sh

Manage with pm2

Use the project’s ecosystem.config.cjs with pm2 on the remote host (start / restart / status as you would any pm2 app).

View logs

./scripts/remote_logs.sh

Ensure PRIVATE_KEY is set in the remote environment (pm2 env / host secrets), not in a committed file. Live leverage trading means a leaked key or misconfigured process can place real orders.

Last updated on