Uploaded image for project: 'stripes-cli'
  1. stripes-cli
  2. STCLI-147

migrate away from http-server

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      non-Firebird Tasks
    • Story Points:
      13
    • Development Team:
      Firebird

      Description

      http-server is used when serving an existing build via lib/server.js. Unfortunately, it is also the source of numerous security alerts due to the fact that it is rather old and thus has rather old dependencies, many of which are no longer maintained. We use express when serving dynamic builds, e.g. via yarn stripes serve stripes.config.js in a platform; we might as use it to serve static builds as well.

      It may be as simple as updating lib/server.js with

        const express = require('express')
      
        const app = express();
        const port = options.port;
        app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`));
        app.use(express.static(dir));
      

      but probably not.

        TestRail: Results

          Attachments

            Activity

              People

              Assignee:
              zburke Zak_Burke
              Reporter:
              zburke Zak_Burke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  TestRail: Runs

                    TestRail: Cases