Dpack get data Node : V10
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

20 wiersze
543 B

  1. var Service = require('node-windows').Service;
  2. var svc = new Service({
  3. name:'DPACKGetData',
  4. description: 'This application will fetch data from DPACK database and send it Primary Database',
  5. script: require('path').join(__dirname, 'server.js'),
  6. env:{
  7. name: "NODE_ENV",
  8. value: "production"
  9. }
  10. });
  11. // Listen for the "uninstall" event so we know when it's done.
  12. svc.on('uninstall',function(){
  13. console.log('Uninstall complete.');
  14. console.log('The service exists: ',svc.exists);
  15. });
  16. // Uninstall the service.
  17. svc.uninstall();