Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##conf/common.rb
- module Ramaze
- Global.adapter = :mongrel
- Global.host = '0.0.0.0'
- Global.port = 9500
- Global.cookies = true
- Global.error_page = true
- #Global.cache = :MemcachedCache
- Global.cache_all = false
- Analogger.trait :name => 'esf'
- Inform.loggers = [Analogger.new]
- require 'ramaze/tool/localize'
- Tool::Localize.trait :file => "#{$MAIN_PATH}/conf/localize_%s.yaml"
- Tool::Localize.trait :languages => %w[en fi], :enable => true
- Dispatcher::Action.trait[:filter] = [Tool::Localize]
- require 'app/override/ramaze/template/render_partial'
- Template::Ezamar.trait[:transform_pipeline].unshift Ezamar::RenderPartial
- end
- # Module Configurations
- DMS.trait :public => "#{$MAIN_PATH}/public"
- #$PROFILE = [:og]
- #
- # Og Configuration
- #
- $DBG = ENV['OG_DBG'] ? (ENV['OG_DBG'] =~ /true/) : true
- Og.create_schema = ENV['OG_CREATE_SCHEMA'] || false
- # catches all Og Logger output
- Logger.send(:class_variable_set, "@@global_logger", Ramaze::Inform)
- Og.manager_options.update(
- :evolve_schema => :add,
- :adapter => :postgresql,
- :name => 'esf',
- :user => 'john',
- :password => nil,
- :encoding => 'LATIN1',
- :classes => nil
- )
- begin
- mode = ENV['RAMAZE_MODE'] || 'debug'
- require "#{$MAIN_PATH}/conf/#{mode}.rb"
- rescue LoadError => e
- puts e.to_s
- puts e.backtrace
- require "#{$MAIN_PATH}/conf/debug.rb"
- end
- ##conf/live.rb
- module Ramaze
- Global.sourcereload = 60
- end
Add Comment
Please, Sign In to add comment