Nuxt.js: Re-load clients after pushing/deploying changes to the server

Created on 20 Feb 2017  路  7Comments  路  Source: nuxt/nuxt.js

Hey Guys,

I'd like to open a feature request about NUXT being able to recognize changes in JS or CSS files after a deploy to the server. It would be great if NUXT could work similar like MeteorJS to recognize changes and force connected client browsers to re-retch / reload the client source and display the changes immediately.

Cheers

This question is available on Nuxt.js community (#c243)
question

All 7 comments

Hi @dohomi

We won't implement such a feature but it could be a plugin for nuxt.js in the future.

Thank you for this idea!

@Atinux would be good if you could track this feature inside of the backlog, as soon plugins are available I think its necessary feature - for sure in the context of a PWA. Thanks for taking it into account

it's added @dohomi :)

And how do you do it now? How to stop a running nuxt server on a remote machine and start it again, after changing the files?

You can use automatic deployments like now.sh or Heroku @cawa-93

They re-deploy when a git push is made.

PM2 with option {watch: true} will do that

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pehbehbeh picture pehbehbeh  路  3Comments

danieloprado picture danieloprado  路  3Comments

jaredreich picture jaredreich  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments

VincentLoy picture VincentLoy  路  3Comments