User Tools

Site Tools


nodejs

Node.js

I'm currently using node.js and pm2 to manage a Foundry VTT instance.

Create pm2 service

pm2 start ~/foundryvtt/resources/app/main.js --name "foundryvtt" -- --dataPath=/home/gabriel/foundrydata

Management

# list all installed services
pm2 list

# start service
pm2 start foundryvtt

# stop service
pm2 stop foundryvtt

# disable and delete service
pm2 delete foundryvtt
nodejs.txt · Last modified: 2022-04-10 22:30 by gabriel