public
Description: A pastebin running on Ramaze and Sequel using Coderay or Ultraviolet for highlighting
Homepage: http://p.ramaze.net
Clone URL: git://github.com/manveru/rapaste.git
rapaste / env.rb
100644 44 lines (35 sloc) 0.908 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
34
35
36
37
38
39
40
41
42
43
44
$rapaste = {
  # Use :uv or :coderay for highlighting
  :engine => :coderay,
 
  # How many pastes to show in the list view on one page
  :pager => 12,
 
  # How many lines to show per paste in preview
  :fragment => 10,
 
  # Priority of syntaxes listed in the drop-down menu
  # Note that highlighting engines usually differ in the names, see the readme
  # for more details.
  :priority => %w[
ruby
plain_text plaintext
html
css
javascript java_script
yaml
diff
],
 
  # only used by uv
  :theme => 'iplastic',
 
  # title of page
  :title => 'RaPaste',
 
  # list of openids that may login
  :users => [
    'http://manveru.myopenid.com',
  ],
 
  # You might want to edit start.rb directly.
  :ramaze => {
    :port => 7000,
    :host => '0.0.0.0',
    :adapter => :mongrel
  }
}
 
DB = Sequel.sqlite( File.join( __DIR__, 'db/rapaste.db' ) ) #, :logger => Ramaze::Log)