Created
August 22, 2020 19:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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