ryaninvents / terraform-node-pm2

Terraform configuration that keeps a Node.js app running.
3 stars 1 forks source link

Make sure this configuration can be run multiple times #1

Closed ryaninvents closed 6 years ago

ryaninvents commented 7 years ago

In the README:

If you run this configuration more than once, it might cause the instance to attempt to run multiple copies of the HTTP server on the same port, which it can't do. I'm working on that.

Todo:

ryaninvents commented 7 years ago

If I set things up with the process file then I won't have to worry about multiple instances. Even better, I might be able to modify this process file from other Terraform configs (maybe with some jq magic?), making it easy to use pm2's cluster functionality to deploy multiple applications on the same machine or set of machines.