Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 13th, 2012  |  syntax: None  |  size: 0.91 KB  |  views: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var config = {};    
  2.  
  3. config.env = 'development';
  4. config.hostname = 'example.dev';
  5. config.appname = 'Example.com';
  6. config.site_url = 'http://example.dev:8080';
  7.  
  8. module.exports = config;
  9.        
  10. var config = require('config.global.js');
  11.  
  12. config.env = 'development';
  13. config.hostname = 'example.dev';
  14. config.appname = 'Example.com';
  15. config.site_url = 'http://example.dev:8080';
  16.  
  17. module.exports = config;
  18.        
  19. var cfg = require('config.' + ( process.ENV.APP_ENV || 'development' ) + '.js');
  20. app.set('domain', cfg.hostname);
  21.        
  22. var config = {};    
  23.  
  24. config.base = {};
  25. config.base.env = 'development';
  26. config.base.hostname = 'example.dev';
  27. config.base.appname = 'Example.com';
  28. config.base.site_url = 'http://example.dev:8080';
  29.  
  30. config.development = Object.create(config.base);
  31. config.development.debugLevel = 'high';
  32. ...
  33.  
  34. config.production = Object.create(config.base);
  35. config.production.debugLevel = 'low';
  36. ...
  37.  
  38. module.exports = config;