Skip to content

Commit f210097

Browse files
committedMar 17, 2012
prepare for bootstrap
1 parent 6c36281 commit f210097

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+7591
-30266
lines changed
 

‎app.rb

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
require 'json'
22
require 'ramaze'
33

4+
ENV['APP_DB'] ||= 'tiny_dialer'
5+
46
require_relative 'options'
57
require_relative 'model/init'
68
require_relative 'lib/tiny_dialer'
@@ -13,12 +15,6 @@
1315
require_relative 'lib/tiny_dialer/tcc_helper' if TinyDialer.options.direct_listener.tcc_root
1416
require_relative 'controller/init'
1517

16-
Ramaze::Response.options.headers.merge!(
17-
"Content-Script-Type" => "text/javascript",
18-
"Content-Style-Type" => "text/css",
19-
"expires" => "0"
20-
)
21-
2218
FSR.load_all_commands
2319

2420
Ramaze.start port: 7575 if $0 == __FILE__

‎config.ru

+1-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
#!/usr/bin/env rackup
2-
#
3-
# config.ru for ramaze apps
4-
# use thin >= 1.0.0
5-
# thin start -R config.ru
6-
#
7-
# rackup is a useful tool for running Rack applications, which uses the
8-
# Rack::Builder DSL to configure middleware and build up applications easily.
9-
#
10-
# rackup automatically figures out the environment it is run in, and runs your
11-
# application as FastCGI, CGI, or standalone with Mongrel or WEBrick -- all from
12-
# the same configuration.
13-
#
14-
# Do not set the adapter.handler in here, it will be ignored.
15-
# You can choose the adapter like `ramaze start -s mongrel` or set it in the
16-
# 'start.rb' and use `ruby start.rb` instead.
172

183
require ::File.expand_path('../app', __FILE__)
19-
Ramaze.start(:root => __DIR__, :started => true)
4+
Ramaze.start root: __DIR__, started: true
205
run Ramaze

0 commit comments

Comments
 (0)