initial dashboard interface, uploading and deleting of files with validations

This commit is contained in:
Kyle Drake 2013-06-03 17:46:53 -07:00
parent 7dfc2407b9
commit 380a1253cc
16 changed files with 526 additions and 4 deletions

View file

@ -34,5 +34,10 @@ Sequel.default_timezone = 'UTC'
Sequel::Migrator.apply DB, './migrations'
Dir.glob('models/*.rb').each {|m| require File.join(DIR_ROOT, "#{m}") }
DB.loggers << Logger.new(STDOUT) if ENV['RACK_ENV'] == 'development'
DB.loggers << Logger.new(STDOUT) if ENV['RACK_ENV'] == 'development'
# If new, throw up a random Server for development.
if ENV['RACK_ENV'] == 'development' && Server.count == 0
Server.create ip: '127.0.0.1', slots_available: 999999
end