Closed navap123 closed 11 years ago
Hi, server.js
should be in the same folder than package.json. Winser will execute this when the service start:
npm start
in your package.json folder. You can execute this directly to test it.
If you want to change from server.js to something else you have to add an script to your package.json as follows:
"name": "MY_SERVER"
, "version": "0.0.1"
, "scripts": {
"start": "node blablabla.js"
"install-windows-service": "node_modules\\.bin\\winser -i",
"uninstall-windows-service": "node_modules\\.bin\\winser -r"
}
Hello, I am trying to use it without success. I get that the program was installed as a service. I can see the service but no process of nssm.exe nor node.exe.
Probably something wrong with package.json. Here is the package.json file:
I have a script server.js from the folder I'm running "winser", but still it doesn't start node.exe
Another question: How to change the file from default server.js? Thanks for your help. Nava.