Hello to everyone and thanks for reading;
This is my first time using Digital Ocean and I’m having a few problems to get going. I’m trying to deploy a PWA E-commerce based on Nuxt and Strapi. I deployed Strapi with the one-click deploy and it works perfectly, but I don’t know how to set up the front end.
I created the droplet with ubuntu 18 and setted up the non-root user with admin privileges and the firewall. After that, I’ve installed NodeJs (14.15 via PPA) and NPM, I’ve copied the files of Nuxt via SCP on /home/my-user/project and then installing Nginx configuring the location to point to localhost:3000 , then I’ve ran the command npm install / npm run build, the page generates correctly, finally installing PM2 to run the page. I’ve tested the configuration in Nginx and is allright, I ran the command curl http://localhost and returns the whole html doc (because I’ve already built and compiled the files with the Nuxt build ) but after getting all this done, I try to go to the droplet public ip to only get Conection Timed Out.
I’ve done this whole process a couple of times, following the official guides and another tutorials that I’ve found and of trusted sources (like Medium) but at this point I’don’t know what else to do. Is from the configuration of my server? Thanks in advance for the help!
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 $100 of credit to try our products over 60 days!