Advertisement
Guest User

Untitled

a guest
Oct 6th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. var path = require('path'),
  2. rootPath = path.normalize(__dirname + '/..'),
  3. env = process.env.NODE_ENV || 'development';
  4.  
  5. var config = {
  6. development: {
  7. root: rootPath,
  8. app: {
  9. name: 'whome56'
  10. },
  11. port: process.env.PORT || 5656,
  12. db: 'elgamal',
  13. username: 'pip',
  14. password: 'whome56',
  15. options: {
  16. host: 'localhost',
  17. port: 3306,
  18. dialect: 'mysql'
  19. }
  20. },
  21.  
  22. test: {
  23. root: rootPath,
  24. app: {
  25. name: 'whome56'
  26. },
  27. port: process.env.PORT || 5656,
  28. db: 'mysql://localhost/whome56-test'
  29. },
  30.  
  31. production: {
  32. root: rootPath,
  33. app: {
  34. name: 'whome56'
  35. },
  36. port: process.env.PORT || 5656,
  37. db: 'mysql://localhost/whome56-production'
  38. }
  39. };
  40.  
  41. module.exports = config[env];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement