Typedef
| Static Public Summary | ||
| public |
Output path object. |
|
| public |
Roc builder object. |
|
| public |
Roc server. |
|
| public |
Roc server options. |
|
| public |
startServer(port: number): function Starts a server. |
|
Static Public
public rocServer: Object source
Roc server.
Properties:
| Name | Type | Attribute | Description |
| server | object | Koa instance. |
|
| start | startServer | Starts the server. |
public rocServerOptions: Object source
Roc server options.
Used in createServer.
Both of these options can also be set in roc.config.js however these values will override them if provided.
public startServer(port: number): function source
Starts a server.
The port for the server to start on can be selected in 3 ways and has priority in the same order.
- The param for the function,
port - Environment variable,
PORT - The port from
roc.config.js
Params:
| Name | Type | Attribute | Description |
| port | number |
|
the port to start the server on. |