L
L
Leonid K2017-08-15 21:25:44
Ruby on Rails
Leonid K, 2017-08-15 21:25:44

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

writes
== 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

2 answer(s)
V
vreitech, 2017-08-15
@fzfx

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.

S
Sergey, 2017-08-15
@gangstarcj

Well, you need to raise your dns server, buy a domain, attach it to a local server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question