User Tools

Site Tools


nodejs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

nodejs [2022-04-10 22:26] – created gabrielnodejs [2022-04-10 22:30] (current) – adding pm2 commands gabriel
Line 1: Line 1:
-====== Nodejs ======+====== Node.js ======
  
 I'm currently using [[https://nodejs.org/en/|node.js]] and [[https://pm2.keymetrics.io/docs/usage/quick-start/|pm2]] to manage a [[https://foundryvtt.com/|Foundry VTT]] instance. I'm currently using [[https://nodejs.org/en/|node.js]] and [[https://pm2.keymetrics.io/docs/usage/quick-start/|pm2]] to manage a [[https://foundryvtt.com/|Foundry VTT]] instance.
  
-===== Pages =====+===== Create pm2 service =====
  
-<nspages nodejs -h1 -textPages="">+<code> 
 +pm2 start ~/foundryvtt/resources/app/main.js --name "foundryvtt-- --dataPath=/home/gabriel/foundrydata 
 +</code>
  
 +==== Management ====
  
 +<code>
 +# list all installed services
 +pm2 list
 +
 +# start service
 +pm2 start foundryvtt
 +
 +# stop service
 +pm2 stop foundryvtt
 +
 +# disable and delete service
 +pm2 delete foundryvtt
 +</code>
nodejs.txt · Last modified: 2022-04-10 22:30 by gabriel