Script
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
node_modules/
|
||||||
11
lancia_script.sh
Executable file
11
lancia_script.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Script per avviare PM2 con il file ecosystem.config.js
|
||||||
|
|
||||||
|
# Avvia i processi definiti nel file di configurazione
|
||||||
|
pm2 start ecosystem.config.js
|
||||||
|
|
||||||
|
# Salva la lista dei processi attivi per il ripristino al riavvio
|
||||||
|
pm2 save
|
||||||
|
|
||||||
|
# Configura PM2 per l'avvio automatico al boot del sistema
|
||||||
|
pm2 startup systemd -u $(whoami) --hp $HOME
|
||||||
Reference in New Issue
Block a user