Skip to content

Configuring Port (and Host)

Ross Attrill edited this page Jun 12, 2015 · 3 revisions

By default, Angelo will start on port 4567.

In a modular style app, the port number can be set as a parameter to run! as follows:

require 'angelo'

class WebServer < Angelo::Base

  get '/' do
    "Hello world"
  end

end

WebServer.run!('localhost', 4568)
Clone this wiki locally