Sha256: 162c50c5881cf4f4d680065e2a677a3e573157d15aa1fb18ae9da45274aa915f

Contents?: true

Size: 1.25 KB

Versions: 8

Compression:

Stored size: 1.25 KB

Contents

# serve — Serve System Descriptions Using a Web Server

## Synopsis

`machinery serve` [-p PORT | --port=PORT] [--public]

`machinery` help serve

## Description

The `serve` command spawns a web server to view system descriptions as an HTML
view.

By default the server is available from http://127.0.0.1:7585 but both the
IP address and the port can be configured using the according options.

Specific descriptions are available from http://127.0.0.1:7585/NAME, where NAME
is the name of the system description. If no name is specified in the URL an
overview of all descriptions is served.

## Options

  * `-p PORT`, `--port=PORT` (optional):
    Specify the port on which the web server will serve the HTML view: Default: 7585

    Ports can be selected in a range between 2-65535. Ports between 2 and 1023 can only be
    chosen when `machinery` will be executed as `root` user.

  * `--public` (optional):
    Specifying this option, lets the server listen on each configured IP address. By default
    the server will only listen on the localhost IP address 127.0.0.1

## Examples

  * Start the server with default options:

    $ `machinery` serve

  * Make the server available to other machines on the network on port 3000:

    $ `machinery` serve --public --port 3000

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
machinery-tool-1.24.1 manual/docs/docs/machinery-serve.1.md
machinery-tool-1.24.0 manual/docs/machinery-serve.1.md
machinery-tool-1.23.1 manual/docs/machinery-serve.1.md
machinery-tool-1.23.0 manual/docs/machinery-serve.1.md
machinery-tool-1.22.3 manual/docs/machinery-serve.1.md
machinery-tool-1.22.2 manual/docs/machinery-serve.1.md
machinery-tool-1.22.1 manual/docs/machinery-serve.1.md
machinery-tool-1.22.0 manual/docs/machinery-serve.1.md