Skip to content

Instantly share code, notes, and snippets.

@thoughtspeed7
Last active May 28, 2020 15:10
Show Gist options
  • Save thoughtspeed7/19b5bcf912baf79c0c933b1f720373c8 to your computer and use it in GitHub Desktop.
Save thoughtspeed7/19b5bcf912baf79c0c933b1f720373c8 to your computer and use it in GitHub Desktop.
Node.js Best Practices - Smarter Ways to Manage Config Files and Variables
{
"development": {
"config_id": "development",
"app_name": "my app",
"app_desc": "my app desc",
"node_port": 3000,
"json_indentation": 4,
"database": "my-app-db-dev"
},
"testing": {
"config_id": "testing",
"database": "my-app-db-test"
},
"staging": {
"config_id": "staging",
"node_port": 8080,
"database": "my-app-db-stag"
},
"production": {
"config_id": "production",
"node_port": 8080,
"database": "my-app-db-prod"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment