Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to get this running as a service in windows 10 powershell #202

Open
clsferguson opened this issue Mar 28, 2019 · 1 comment
Open

Comments

@clsferguson
Copy link

Hey, I was hoping someone could point me in the right direction to get this running as a service on windows 10. i can get it running inside a powershell. but then i always have to open a console and well you know.

i tried pm2 and pm2_windows_service. both didn't work right.

@sgupta999
Copy link

Checkout
https://www.howtogeek.com/50786/using-srvstart-to-run-any-application-as-a-windows-service/
Step 1.
create a .bat or .cmd file with the following command
@echo off
node.exe "C:\Program Files\nodejs\node_modules\smartthings-mqtt-bridge\bin\smartthings-mqtt-bridge" %*

convert this .bat or .cmd to exe using battoexeconverter
https://www.majorgeeks.com/files/details/bat_to_exe_converter.html

then convert it to service using
https://github.com/rozanski/srvstart

following instructions in original article

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants