mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
Fix Dockers
This commit is contained in:
15
src/install-evolution-api-ws.ts
Normal file
15
src/install-evolution-api-ws.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import nodeWindows from 'node-windows';
|
||||
import path from 'path';
|
||||
|
||||
const svc = new nodeWindows.Service({
|
||||
name: 'EvolutionAPIServer',
|
||||
description:
|
||||
'WhatsApp-Api-NodeJs - This project is based on the CodeChat. The original project is an implementation of Baileys',
|
||||
script: path.join(__dirname, 'main.js'),
|
||||
});
|
||||
|
||||
svc.on('install', () => {
|
||||
svc.start();
|
||||
});
|
||||
|
||||
svc.install();
|
||||
16
src/uninstall-evolution-api-ws.ts
Normal file
16
src/uninstall-evolution-api-ws.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import nodeWindows from 'node-windows';
|
||||
import path from 'path';
|
||||
|
||||
const svc = new nodeWindows.Service({
|
||||
name: 'EvolutionAPIServer',
|
||||
description:
|
||||
'WhatsApp-Api-NodeJs - This project is based on the CodeChat. The original project is an implementation of Baileys',
|
||||
script: path.join(__dirname, 'main.js'),
|
||||
});
|
||||
|
||||
svc.on('uninstall', () => {
|
||||
console.log('Uninstall complete.');
|
||||
console.log('The service exists: ', svc.exists);
|
||||
});
|
||||
|
||||
svc.uninstall();
|
||||
Reference in New Issue
Block a user