This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
2008-06-27 00:13:15 -04:00
|
|
|
Gem.clear_paths
|
|
|
|
Gem.path.unshift(Merb.root / "gems")
|
|
|
|
$LOAD_PATH.unshift(Merb.root / "lib")
|
|
|
|
|
|
|
|
Merb::Config.use do |c|
|
|
|
|
c[:session_secret_key] = '9e6d92dd24c39be48946fc947255476fa4d7f7e9'
|
|
|
|
c[:session_store] = :activerecord
|
|
|
|
end
|
|
|
|
|
|
|
|
use_orm :activerecord
|
|
|
|
use_test :rspec
|
|
|
|
|
|
|
|
dependencies 'merb_helpers', 'merb_has_flash', 'merb-mailer'
|
2008-06-29 17:19:52 -04:00
|
|
|
require 'merb_exceptions'
|
2008-06-27 00:13:15 -04:00
|
|
|
require 'redcloth'
|
|
|
|
require 'RMagick'
|
|
|
|
require 'memcache'
|
|
|
|
require 'memcache_util'
|
|
|
|
|
|
|
|
Merb::BootLoader.after_app_loads do
|
|
|
|
config_path = File.join(Merb.root, 'config', 'memcache.yml')
|
|
|
|
if File.file?(config_path) and File.readable?(config_path)
|
|
|
|
memcache_connection_str = YAML.load(File.read(config_path))
|
|
|
|
else
|
|
|
|
memcache_connection_str = 'localhost:11211'
|
|
|
|
end
|
|
|
|
CACHE = MemCache.new memcache_connection_str
|
2008-06-29 17:19:52 -04:00
|
|
|
|
|
|
|
Merb::Mailer.config = { :sendmail_path => '/usr/sbin/sendmail' }
|
|
|
|
Merb::Mailer.delivery_method = :sendmail
|
2008-06-27 00:13:15 -04:00
|
|
|
end
|