public
Description: Open Source Social Networking Platform
Homepage: http://github.com/manveru/sociar
Clone URL: git://github.com/manveru/sociar.git
Click here to lend your support to: sociar and make a donation at www.pledgie.com !
sociar / start.rb
100644 33 lines (24 sloc) 0.626 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'rubygems'
require 'ramaze'
require 'maruku'
require 'sequel'
 
$LOAD_PATH.unshift(__DIR__)
 
require 'env'
 
require 'vendor/flickr'
require 'vendor/haml_maruku_filter'
require 'vendor/image_science_cropped_resize'
 
require 'model/init'
require 'controller/init'
 
require 'db/init' if SOCIAR.mode == :dev
 
r = SOCIAR.ramaze
 
=begin
if r.gzip
require 'ramaze/contrib/gzip_filter'
gzip = Ramaze::Filter::Gzip
gzip.trait :threshold => 1
Ramaze::Dispatcher::Action::FILTER << gzip
=end
 
Ramaze.start :adapter => r.adapter,
             :host => r.host,
             :port => r.port,
             :boring => r.boring