Node.js single script deployment

Hello! I have successfully developed a Node.js script that automates something tedious with the help of a few libraries. It’s a small single script that moderates a group chat.

What are the best practices for deploying something like this into a production environment? Here are my ideas:

  • I have a Synology NAS with docker installed - I was considering spinning up another image that runs the script.

  • I have a Linode (yay!) - would it be advisable to install npm on “bare metal” for such a small task?

  • Or are there other, more fitting options?

Any applicable resources or links would be helpful, thank you!

i do this all the time professionally.

my first instinct is to use docker. the node images are very nice and easy to use, and there are a lot of tutorials on the best practices on making a node docker image.

dockerize a node app: Containerize a Node.js application | Docker Docs

1 Like

In that case, this is the path I’ll take! Thank you!

Good luck :+1:

Good call. Taking a Docker course now. I knew the basics of it, but not the depth.

1 Like