srv to api

This commit is contained in:
Михаил Капелько
2025-08-16 23:54:19 +03:00
parent aef61b2ff4
commit 1eb4d7e2d2
4 changed files with 49 additions and 1 deletions

10
api.setup Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
apt install nodejs npm
mkdir -p /var/log/consult
chgrp www-data /var/log/consult
npm list -g | grep pm2 || npm install -g pm2
pm2 restart api/srv.consult.js
pm2 startup
pm2 save