Question

Node app runs locally, but not on DO

Hi

I’ve created an eCommerce app with Nuxt.js, and therefore Node.js. It is hosted on DO, and actually it works, but whenever I make changes to the code, and build the app again, and then try to click around in the app live, it crashes and waits forever. If I empty cache and cookies it works again. This is not ideal, since it’s a live eCommerce app.

The reason I think it’s a DigitalOcean related issue is that it’s working locally, but not on DigitalOcean Droplet.

What’s going on, and how do I fix this? :)


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This is strange behavior. To be able to debug the problem, we’ll need little bit more details. How do you run your (Node.js) application? Have you checked logs to find out the root of the problem?

Also, did you tested with another browser? Lastly, if you’re using some caching solution or CDN, make sure it’s configured correctly.