The easiest way to get any Node app running is to use Dokku. Spin up a Dokku droplet on Digital Ocean: Dokku Droplet by Digital Ocean
NOTE: Droplet must have at least 1GB of RAM or else the build will fail.
TODO: Need to figure out how to set up .env
file via Dokku. Should contain NODE_ENV=production
...
git remote add dokku [email protected]:my-app-name
git push dokku master
dokku domains:add my-app-name mydomain.com
Read documentation here: Dokku - Let's Encrypt
dokku ps:set-restart-policy my-app-name always
dokku ls
docker logs <container ID>
For info on setting up other plugins (databases, etc), read this documentation: Dokku - Application Deployment