alexa-app-server
alexa-app-server copied to clipboard
Hotswap broken
I have subfolders in some of my apps. Hotswap will reload for index.js but not for my other js files in the subfolders. How can I get hotswap to listen to all files in my app's hierarchy?
From the hotswap readme...
And then add this line to modules you want to be reloaded (it tells node-hotswap to watch this file):
module.change_code = 1;
I get the message hotswap reloaded
but I don't see those changes until I kill the server and start it again. :/
I can second that, lets reopen this issue.
same here i also tried adding a "console.log()" to the index.js file and it dos seem to load the module and print the log message but does not change the in-memory app
Thanks, @aaronrogers. I have the same issue - glad you recorded it!
There is another module called hotmop. While I haven't tried it myself, it's worth a try in place of node-hotswap.
seems like it doesn't usually work here, either
Not working for me either.
Not working for me either.
OS: macOS 10.12.5 Node: v6.10.3 NPM: 3.10.10
Looking for some PRs!
It's not totally ideal in terms of efficiency, but for most use-cases node-dev is sufficient during dev:
npm install -g node-dev
node-dev server.js
On change, the server reboots and the app restarts.