Add ability to configure devServer.js interface and port

Description

For at least one use case (port forwarding from a VirtualBox with stripes installed to the host machine), it would be useful to be able to configure devServer.js to listen on a different interface/port combination (rather than localhost/3000).

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Wayne SchneiderDecember 16, 2016 at 2:17 PM

We agreed to change the STRIPES_IFACE env variable to STRIPES_HOST. Pull request merged. Thanks, !

Wayne SchneiderDecember 15, 2016 at 9:20 PM

I made the simplest change possible, adding support for environment variables STRIPES_PORT and STRIPES_IFACE to devServer.js. Change included in pull request https://github.com/folio-org/stripes-core/pull/2 - feel free to change and correct.

As it stands, you can configure the address or port with the command-line like:

Wayne SchneiderDecember 15, 2016 at 8:08 PM

One possibility is to parse command-line arguments or environment variables using process.argv or process.env (https://nodejs.org/docs/v6.9.2/api/process.html). Then the user could do something like:

...while still defaulting to localhost/3000

Done

Details

Assignee

Reporter

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 15, 2016 at 7:59 PM
Updated December 16, 2016 at 2:18 PM
Resolved December 16, 2016 at 2:18 PM
TestRail: Cases
TestRail: Runs