Skip to content
Newer
Older
100755 42 lines (33 sloc) 897 Bytes
3805f02 trying to fix encoding issues
root authored
1 # encoding: UTF-8
f2c6a1a adding the rackup file
Hampton Catlin authored
2 # config.ru
394847d @hcatlin teach merb to run better under local passenger setup
authored
3 if defined?(Encoding)
4 Encoding.default_internal = Encoding.default_external = "UTF-8"
5 end
fe84e4b external encoding
root authored
6
51b91c4 @hcatlin now using a UDP logger that should definitely work
authored
7 begin
8 require 'minigems'
9 rescue LoadError
10 require 'rubygems'
11 end
466c9e4 @merbjedi Updating Wikipedia Mobile to support the new Merb 1.1 Bundler. All ge…
merbjedi authored
12
31a4ac7 @hcatlin updating gemfile and config files
authored
13 require 'bundler'
cc227cc @hcatlin adding bundler.setup() to the rackup file
authored
14 Bundler.setup
31a4ac7 @hcatlin updating gemfile and config files
authored
15
f2c6a1a adding the rackup file
Hampton Catlin authored
16 require 'merb-core'
17
34904c5 file modes
root authored
18 Merb::Config.setup(:merb_root => ::File.expand_path(::File.dirname(__FILE__)),
4ed0398 @hcatlin force into production mode
authored
19 :environment => "production")
394847d @hcatlin teach merb to run better under local passenger setup
authored
20
f2c6a1a adding the rackup file
Hampton Catlin authored
21 Merb.root = Merb::Config[:merb_root]
81f1ac0 @hcatlin even more heavy handed
authored
22 Merb.environment = "production"
f2c6a1a adding the rackup file
Hampton Catlin authored
23 Merb::BootLoader.run
51b91c4 @hcatlin now using a UDP logger that should definitely work
authored
24
95675c0 @hcatlin stupid memcached
authored
25 if defined?(PhusionPassenger)
26 PhusionPassenger.on_event(:starting_worker_process) do |forked|
d72405d @hcatlin Switching from memcached-client to dalli. This
authored
27 if forked
28 Cache.reset
6646caa @hcatlin removing the startup line
authored
29 # Server.setup # reset our curl connection
d72405d @hcatlin Switching from memcached-client to dalli. This
authored
30 else
31 # We're in conservative spawning mode. We don't need to do anything.
32 end
95675c0 @hcatlin stupid memcached
authored
33 end
34 end
35
394847d @hcatlin teach merb to run better under local passenger setup
authored
36 if(Merb.environment == 'production')
d72405d @hcatlin Switching from memcached-client to dalli. This
authored
37 require Merb.root / "lib" / "udp_logger"
394847d @hcatlin teach merb to run better under local passenger setup
authored
38 use Merb::Rack::UDPLogger
39 end
51b91c4 @hcatlin now using a UDP logger that should definitely work
authored
40
f2c6a1a adding the rackup file
Hampton Catlin authored
41 run Merb::Rack::Application.new
Something went wrong with that request. Please try again.