Initial project structure with some barebones layout, CSS and JS from game-data
This commit is contained in:
3
config/defaults.yaml
Normal file
3
config/defaults.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
server:
|
||||
host: '0.0.0.0'
|
||||
port: '9300'
|
11
config/puma.rb
Normal file
11
config/puma.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
app_dir = File.expand_path('..', __dir__)
|
||||
directory app_dir
|
||||
|
||||
environment ENV.fetch('RACK_ENV', 'development')
|
||||
|
||||
require_relative '../src/config'
|
||||
conf = Config.new()
|
||||
|
||||
bind "tcp://#{conf.get('server.host')}:#{conf.get('server.port')}"
|
||||
workers 2
|
||||
threads 1, 5
|
Reference in New Issue
Block a user