hi, I’d like to have a node service periodically query an external database (influxdatacloud) for one value that would be stored in the file system and used cosmetically in my site. Is it possible to do this in my droplet?
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!
Yes, it’s possible and easy to configure. You can install and configure the NodeJS service to query the external database and turn it on on your Droplet like you would usually. All you need to do is have your NodeJS service listen on a different port than 80 and 443 and that is it.
If you want your NodeJS to listen to port 80 and 443 alongside your website, all you need to configure is reverse proxy on your WebService. Both Apache and Nginx do allow it so it won’t be a problem.
Hello,
You could achieve this with pm2 that way your Node application will run in the background and would be restarted in case it crashes.
You can follow the steps on how to do that here:
All commands used in the video can be found here:
Best,
Bobby
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.