Guest User

Untitled

a guest
Dec 13th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  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;
Add Comment
Please, Sign In to add comment