In this video I discuss the most common error when using Putty to start your Foundry server and how to fix it. Additionally, I explain how to use the PM2 command to start Foundry and keep it running, even if the Putty console is closed. This is useful if you want to keep your server running 24/7.
0:00 Intro
1:23 Find and Kill Running Processes
6:30 Using PM2 to Keep Foundry Running
Useful Commands:
Find running processes (without quotes):
"ps aux | grep node"
Kill running process (without quotes and brackets):
"kill -9 [process number]"
Install PM2 command (without quotes):
"npm install pm2@latest -g"
Start a Foundry Server with PM2 (without quotes):
"pm2 start resources/app/main.js --name "foundry" -- --dataPath=$HOME/foundrydata"
NOTE: if you've installed Foundry somewhere other than /foundryvtt or have your data in something other than /foundrydata, you will have to edit the command above with the paths to where your info is located.