mirror of
https://github.com/neocities/neocities.git
synced 2025-05-20 11:19:36 +02:00
initial dashboard interface, uploading and deleting of files with validations
This commit is contained in:
parent
7dfc2407b9
commit
380a1253cc
16 changed files with 526 additions and 4 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue