Planka service (Linux)
Run Planka as service
To run Planka reboot save, we are using PM2
Install PM2
sudo npm install pm2@latest -g
cd /var/www/planka
pm2 start --name "planka" "npm run db:init && npm start --prod"
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u planka --hp /home/planka
pm2 save