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

Hotswap broken #8

Open
jbeuckm opened this issue Jun 21, 2016 · 11 comments
Open

Hotswap broken #8

jbeuckm opened this issue Jun 21, 2016 · 11 comments

Comments

@jbeuckm
Copy link

jbeuckm commented Jun 21, 2016

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?

@jbeuckm
Copy link
Author

jbeuckm commented Jun 23, 2016

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;

@jbeuckm jbeuckm closed this as completed Jun 23, 2016
JasonArkens17 added a commit to JasonArkens17/alexa-app-server that referenced this issue Aug 25, 2016
@aaronrogers
Copy link

I get the message hotswap reloaded but I don't see those changes until I kill the server and start it again. :/

@dblock
Copy link
Collaborator

dblock commented Mar 3, 2017

I can second that, lets reopen this issue.

@dblock dblock reopened this Mar 3, 2017
@dblock dblock added the bug? label Mar 3, 2017
@dblock dblock changed the title Configure Hotswap for My Files Hotswap broken? Mar 3, 2017
@Bldr
Copy link

Bldr commented Mar 6, 2017

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

@rickwargo
Copy link
Collaborator

Thanks, @aaronrogers. I have the same issue - glad you recorded it!

@tejashah88
Copy link
Member

There is another module called hotmop. While I haven't tried it myself, it's worth a try in place of node-hotswap.

@ericblade
Copy link

seems like it doesn't usually work here, either

@kosmjon
Copy link

kosmjon commented Jun 9, 2017

Not working for me either.

@dhalucario
Copy link

Not working for me either.

OS: macOS 10.12.5
Node: v6.10.3
NPM: 3.10.10

@dblock
Copy link
Collaborator

dblock commented Jul 5, 2017

Looking for some PRs!

@dblock dblock changed the title Hotswap broken? Hotswap broken Jul 5, 2017
@damassi
Copy link

damassi commented Aug 18, 2017

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.

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

No branches or pull requests

10 participants