Skip to content

Instantly share code, notes, and snippets.

@brainomite
Created August 22, 2020 19:53
Show Gist options
  • Save brainomite/5e0b8274a42eaca4713a029dc264a865 to your computer and use it in GitHub Desktop.
Save brainomite/5e0b8274a42eaca4713a029dc264a865 to your computer and use it in GitHub Desktop.
Ecosystem file for Medium post on How I Set Up a Server To Host Multiple Node.JS Projects & Save $54+ Per-App Annually vs Heroku
module.exports = {
apps : [{
name: "demo",
script: "/var/www/xyz.com/app.js",
/*
* uncomment the next line or two to enable logging both stdout and
* error outputs to disk and optionally enable prepending the logs with a
* timestamp.
*/
// log_file: '/home/john/applogs/xyz.com/combined.log', // don't forget to change from john
// time: true, // enable prepending of a time-stamp
// environment variables
env: {
PORT: "3000",
},
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment