By oriang
I’m using ‘one click’ made droplet with node.js. i got nginx running and showing its default page when i go to the IP address of the droplet. i have cloned my project into the droplet and ‘npm install’ it, i can run it using ‘npm run dev – -p <port>’ and i can see the message it’s running. i have tried few ports but i can’t figure out what i’m missing. when i go to ‘000.00.000.000’ i see nginx default page, and when i try ‘000.00.000.000:3000’ or other port i get nothing. Please help me figure out what to do, i’m already started ‘using’ and it’s costs money. thanks.
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!
Try specifying the wildcard host:
npm run dev -- -p 3000 --host 0.0.0.0
Then access it via your server’s IP and port 3000.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.