Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !6229

Update `serve` port flag and add example

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/lyzhovnik/docs-change-serve-ports into master Jan 19, 2019
  • Overview 4
  • Commits 2
  • Pipelines 0
  • Changes 1

Created by: lyzhovnik

Hi everyone! Thank for this awesome project! I enjoy this a lot and use it in my react projects!

So, I needed to run front-end with serve library with my costume port, I made some reserch about all flags and docs about serve and noticed that frags which are on the CRA website are still working, but they are deprecated and serve lib recommends to use flag -l instead of -p, this discussion is in https://github.com/zeit/serve/issues/382 issue, and also you can see this in serve code: https://github.com/zeit/serve/blob/85d121e5008783395cc607089f23a5039547f952/bin/serve.js#L258

This pull request updates serve ports and adds example of using costume ports with serve lib

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/lyzhovnik/docs-change-serve-ports