11 lines
227 B
Ruby
11 lines
227 B
Ruby
require 'sinatra'
|
|
|
|
set :port, ENV.fetch("PORT", 5162)
|
|
set :bind, '0.0.0.0'
|
|
set :host_authorization, { permitted_hosts: ["newtab.syedm.dev"] }
|
|
set :public_folder, File.expand_path('public', __dir__)
|
|
|
|
get '/' do
|
|
erb :index
|
|
end
|