Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var path = require('path'),
- rootPath = path.normalize(__dirname + '/..'),
- env = process.env.NODE_ENV || 'development';
- var config = {
- development: {
- root: rootPath,
- app: {
- name: 'whome56'
- },
- port: process.env.PORT || 5656,
- db: 'elgamal',
- username: 'pip',
- password: 'whome56',
- options: {
- host: 'localhost',
- port: 3306,
- dialect: 'mysql'
- }
- },
- test: {
- root: rootPath,
- app: {
- name: 'whome56'
- },
- port: process.env.PORT || 5656,
- db: 'mysql://localhost/whome56-test'
- },
- production: {
- root: rootPath,
- app: {
- name: 'whome56'
- },
- port: process.env.PORT || 5656,
- db: 'mysql://localhost/whome56-production'
- }
- };
- module.exports = config[env];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement