Guest User

Untitled

a guest
Feb 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. Runtime config attributes
  2. host
  3. port (will it be possible for an app to have a separate port?)
  4. log (i'm beginning to see that runtime level logs may be best. perhaps the runtime could have an optional "log viewer" waves app built in that could sort out stuff 'per app')
  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. *cache
  18.  
  19.  
  20. Runtime config provided by top-level configurations
  21. startup.rb specifies apps to load, perhaps using Dir["apps/*/lib/application.rb"]
  22. Access runtime and app configs separately?
  23. Waves.config.synchronize?
  24. Blog.config.database
  25.  
  26.  
  27. multi_1/
  28. apps/
  29. blog/
  30. wiki/
  31. configurations/
  32. default.rb # => Waves::Configurations::Default
  33. development.rb # => Waves::Configurations::Development
  34. production.rb # => Waves::Configurations::Production
  35. log/
  36. startup.rb
  37.  
  38.  
  39. First app loaded is used for runtime config.
  40. How/where do you specify the loading of apps?
  41. *(don't like this method at all)
  42. multi_2/
  43. blog/
  44. configurations/
  45. startup.rb
  46. ...
  47. pages/
  48. configurations/
  49. startup.rb
  50. ...
  51. wiki/
  52. configurations/
  53. startup.rb
  54. ...
  55.  
  56. same premise as multi_1, except it puts runtime config in a separate dir and
  57. does away with the apps/ directory.
  58. multi_3/
  59. blog/
  60. *configurations/
  61. development.rb
  62. production.rb
  63. wiki/
  64. runtime/
  65. configurations/
  66. default.rb # => Waves::Configurations::Default
  67. development.rb # => Waves::Configurations::Development
  68. production.rb # => Waves::Configurations::Production
  69. log/
  70. startup.rb
Add Comment
Please, Sign In to add comment