Guest User

Untitled

a guest
Apr 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. %~d0
  2. cd %~d0%~p0
  3.  
  4. call npm init
  5. call npm install --save node-red
  6. call npm install --save @autocodingsystems/node-red-utils
  7. call npm install --save node-red-contrib-mqtt-broker
  8. call npm install --save node-red-dashboard
  9. call npm install --save winser
  10.  
  11. mkdir datadir
  12.  
  13. @echo off
  14. (
  15. echo %%~d0
  16. echo cd %%~d0%%~p0
  17. echo .\node_modules\.bin\node-red -u ./datadir ./datadir/flows.json
  18. )>run-local.cmd
  19.  
  20. (
  21. echo %%~d0
  22. echo cd %%~d0%%~p0
  23. echo call .\node_modules\.bin\winser -i -a --startuptype delayed --startcmd "node .\node_modules\node-red\red.js -u ./datadir ./datadir/flows.json"
  24. echo pause
  25. )>install-service.cmd
  26.  
  27. (
  28. echo %%~d0
  29. echo cd %%~d0%%~p0
  30. echo call .\node_modules\.bin\winser -r -x
  31. echo pause
  32. )>uninstall-service.cmd
Add Comment
Please, Sign In to add comment