I’m in the process of setting up a node.js app and just got it working on my local machine, but it’s not loading on friends or family’s laptops or my phone.
I followed the instructions in https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-18-04.
I have a few suspicions about what might be causing the problem, but I’m very new to this and wanted to see if you all had any suggestions. In descending order of suspiciousness:
Redirect - Make all requests redirect to secure HTTPS access
node -r esm server.js(with ES6 code, arrow functions and the like). I’ve been testing with the newest versions of Chrome so this shouldn’t be a problem, but I’m not sure, esp. if I’m not using Babel properly
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!
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.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!