Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Backend/config.js.template
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (22 sloc)
883 Bytes
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
/* | |
INSTRUCTIONS: copy this file as 'config.js' and ensure the | |
filename 'config.js' is in your '.gitignore' file. | |
Then remove this header and put the actual DB connection | |
details in to the newly created 'config.js' file. | |
Why? We should NEVER commit config files to version | |
control if they contain passwords or other sensitive | |
information. Since this will be pushed to our repository. | |
Instead, provide a template file like this one for other | |
developers who might need to use the code. They will | |
probably use different configuration settings anyway. | |
*/ | |
// Export database connection information. | |
// Use the environment settings or given defaults. | |
exports.config = { | |
host: process.env.DB_HOST || "", | |
port: process.env.DB_PORT || 0, | |
user: process.env.DB_USER || "", | |
password: process.env.DB_PASSWORD || "", | |
database: process.env.DB_DATABASE || "", | |
connection_limit: 100 | |
} |