Hi, I check out the last codes from merb repository. And the startup information for production environment just like that: =====================================================dev:/var/www/apps/upload_merb/current/log# /etc/init.d/merb_init start Merb started with these options: --- :template_ext: :html: :herb :js: :jerb :xml: :xerb :config: dist/conf/upload.conf :drb_server_port: 32323 :sql_session: true :cluster: 2 :cache_templates: false :host: 127.0.0.1 :port: "6000" :allow_reloading: true :start_drb: true :merb_root: /var/www/apps/upload_merb/current :merb_config: /var/www/apps/upload_merb/current/dist/conf/merb.yml :environment: production Starting merb drb server on port: 32323 Starting merb server on port: 6000 Starting merb server on port: 6001 ===================================================== It''s "production" environment, and the showed "allow_reloading" / "cache_templates" information is wrong. I dig into the merb codes, find that merb show options information in merb_config(...), but some options(:allow_reloading/show_error/cache_templates) are likely to be changed in run(...) according the value of environment. So it''s better to show option informations in run(...) after all options have been decided. Thanks DavidLin
Ezra Zygmuntowicz
2007-Feb-15 05:28 UTC
wrong startup information in production environment
Hey David- Nice catch! Thank you. I''ll fix this right away. merb_server.rb has grown a bit out of control and is due for refactoring anyways. Thanks -Ezra On Feb 14, 2007, at 7:13 PM, David Lin wrote:> Hi, > > I check out the last codes from merb repository. And the startup > information for production environment just like that: > =====================================================> dev:/var/www/apps/upload_merb/current/log# /etc/init.d/merb_init start > Merb started with these options: > --- > :template_ext: > :html: :herb > :js: :jerb > :xml: :xerb > :config: dist/conf/upload.conf > :drb_server_port: 32323 > :sql_session: true > :cluster: 2 > :cache_templates: false > :host: 127.0.0.1 > :port: "6000" > :allow_reloading: true > :start_drb: true > :merb_root: /var/www/apps/upload_merb/current > :merb_config: /var/www/apps/upload_merb/current/dist/conf/merb.yml > :environment: production > > > Starting merb drb server on port: 32323 > Starting merb server on port: 6000 > Starting merb server on port: 6001 > =====================================================> > It''s "production" environment, and the showed "allow_reloading" / > "cache_templates" information is wrong. > > I dig into the merb codes, find that merb show options information in > merb_config(...), but some > options(:allow_reloading/show_error/cache_templates) are likely to be > changed in run(...) according the value of environment. > > So it''s better to show option informations in run(...) after all > options have been decided. > > > Thanks > DavidLin > _______________________________________________ > Merb-devel mailing list > Merb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/merb-devel-- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)