db pool, tweaks for usernames on browse

This commit is contained in:
Kyle Drake 2013-06-26 12:55:22 -07:00
parent 58108ef643
commit f26797f5c9
3 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,6 @@
development:
database: 'postgres://localhost/neocities'
database_pool: 1
session_secret: SETSOMETHINGHERE
recaptcha_public_key: ddsfsdfsdf
recaptcha_private_key: fsdgfdsdfd

View file

@ -14,7 +14,7 @@ Bundler.require :development if ENV['RACK_ENV'] == 'development'
$config = YAML.load_file(File.join(DIR_ROOT, 'config.yml'))[ENV['RACK_ENV']]
DB = Sequel.connect $config['database'], sslmode: 'disable'
DB = Sequel.connect $config['database'], sslmode: 'disable', max_connections: $config['database_pool']
Dir.glob('workers/*.rb').each {|w| require File.join(DIR_ROOT, "/#{w}") }

View file

@ -16,8 +16,8 @@
.span1
h5
b style="margin-left: 20px"
- if site.username.length > 17
a href="http://#{site.username}.neocities.org" target="_blank" rel="tooltip" title="#{site.username}" = site.username[0..17]+'..'
- if site.username.length > 14
a href="http://#{site.username}.neocities.org" target="_blank" rel="tooltip" title="#{site.username}" = site.username[0..14]+'..'
- else
a href="http://#{site.username}.neocities.org" target="_blank" = site.username