Guest User

Untitled

a guest
Feb 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Runtime config attributes
  2. host
  3. port
  4. log
  5. debug
  6. synchronize?
  7. application (rack builder block)
  8. mime_types
  9. resources (routing)
  10. handler (rack handler)
  11.  
  12. App-specific config attributes
  13. database
  14. reloadable
  15. session
  16. dependencies
  17.  
  18.  
  19. Runtime config provided by top-level configurations
  20. startup.rb specifies apps to load, perhaps using Dir["apps/*/lib/application.rb"]
  21. Access runtime and app configs separately?
  22. Waves.config.synchronize?
  23. Blog.config.database
  24.  
  25.  
  26. multi_1/
  27. apps/
  28. blog/
  29. wiki/
  30. configurations/
  31. default.rb # => Waves::Configurations::Default
  32. development.rb # => Waves::Configurations::Development
  33. production.rb # => Waves::Configurations::Production
  34. log/
  35. startup.rb
  36.  
  37.  
  38. First app loaded is used for runtime config.
  39. How/where do you specify the loading of apps?
  40.  
  41. multi_2/
  42. blog/
  43. configurations/
  44. startup.rb
  45. ...
  46. pages/
  47. configurations/
  48. startup.rb
  49. ...
  50. wiki/
  51. configurations/
  52. startup.rb
  53. ...
Add Comment
Please, Sign In to add comment