Skip to content
Newer
Older
100644 19 lines (14 sloc) 411 Bytes
a178fb3 @siuying init
authored
1 #!/usr/bin/env ruby
2 require 'rubygems'
3 require 'json'
4 require 'sinatra/base'
5
6 require 'lib/green'
7
8 DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{FileUtils.pwd}/green.db")
9
10 class Green < Sinatra::Default
11 register Sinatra::Green::Controller
12
13 set :views, 'views'
14 set :public, 'public'
15 set :environment, :production
d8e4812 @siuying change keyword for stopxrl
authored
16 set :search_terms, ["stopxrl", "高鐵"]
36bfd31 @siuying add ajax loading older page
authored
17 set :items_per_page, 25
a178fb3 @siuying init
authored
18 end
Something went wrong with that request. Please try again.