Answer the question
In order to leave comments, you need to log in
How to distribute a site on a local network?
I can't distribute the site over the local network.
require 'sinatra'
set :port, 8090
set :bind, '0.0.0.0'
get '/' do
"Hello world"
end
== Sinatra (v2.0.0) has taken the stage on 8090 for development with backup from Puma
Puma starting in single mode...
* Version 3.9.1 (ruby 2.3.4-p301), codename: Private Caller
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://0.0.0.0:8090
Use Ctrl-C to stop
Answer the question
In order to leave comments, you need to log in
go to the site specifying port 8090 in the url. or change the port from 8090 to 80 in the site config and go without specifying the port.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question