GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — webmachine-ruby/documentation/configurator.md at master · jimvm/webmachine-ruby

Expand file tree

/

configurator.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
19 lines (15 loc) · 550 Bytes
/

configurator.md

Copy path

File metadata and controls

19 lines (15 loc) · 550 Bytes
Raw
Copy raw file
Download raw file
Edit and raw actions

Application/Configurator

A call to Webmachine::Application#configure returns a Webmachine::Application instance, so you could chain other method calls if you like. If you don't want to create your own separate application object Webmachine.application will return a global one.

require 'webmachine'
require 'my_resource'

Webmachine.application.configure do |config|
  config.ip = '127.0.0.1'
  config.port = 3000
  config.adapter = :WEBrick
end

# Start a web server to serve requests via localhost
Webmachine.application.run
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.