-
Notifications
You must be signed in to change notification settings - Fork 4
install the swarm updater
Bamidele Oluwatobi edited this page Jan 23, 2024
·
5 revisions
cd sphinx-swarm
git pull origin master
sudo apt install nodejs
sudo apt install npm
sudo npm install pm2 -g
vi ecosystem.config.js
module.exports = {
apps: [
{
name: "restarter",
script: "./restarter.js",
env: {
SECOND_BRAIN: "true", // or not
PASSWORD: "-",
},
},
],
};
pm2 start ecosystem.config.js
pm2 logs 0
sometimes it might not be 0
use pm2 list
to find the process id
number the restarter server is running on
vi .env
SWARM_UPDATER_PASSWORD=-
./restart-second-brain.sh