-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Publish package to npmjs registry #3418
Comments
@alexojegu I thought about that but I'm not sure how to handle persistent data stored on store directory... |
I haven't used zwave-js-ui yet so I don't know how it persists the data in the store (I'll try to try the packaged version this afternoon). But I don't quite see the difference between If the problem is the path, perhaps a required option in setting would be useful to configure it and save it in a JSON outside the store (maybe on app root path), or a STORE_PATH environment variable. |
yeah but you should configure that path someway, maybe by creating a service that starts the ui like with pm2 |
Yeah, I was thinking of using |
pm2 allows to specify env vars |
I'll wait for the NPM registry release, the packaged version doesn't seem to work in my (armv7l) Alpine container:
In my (x86_64) Arch Linux desktop does start. |
In a quick test it is working as a charm, thank you. I can suggest that at some point And if you don't mind a quick question: Thanks again. |
@alexojegu Thanks for the feedback about NPM. About aedes vs mosquitto, them are both good brokers but the answer to your question is that it depends on your needs. If you need to customize your broker (by writing custom auth for example or handle all kind of possible events) aedes is the way, if you just need " a broker" I would opt for mosquitto or aedes-cli that are easier to use (just one command to install and another to run them and a config file to configure). Giving that this is a domestic system all the thoughts related to the speed doesn't make any sense as the difference in speed is only seen with very high loads of msg/s |
I want install
zwave-js-ui
on a LXC Alpine container, that it is running on a OpenWRT host.It seems easier to install node.js from an APK and run
npm -g install zwave-js-ui
than download the packaged version, extract, etc. But above all it seems much easier to maintain and update it:or maybe:
I don't know if I'm missing something, I don't usually use globally installed NPM packages. But I think it should work and it would be more comfortable.
https://docs.npmjs.com/updating-packages-downloaded-from-the-registry#updating-globally-installed-packages
The text was updated successfully, but these errors were encountered: