Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

How to publish port on host  #242

Open

Description

@ceo0x

Hello community , how do i open a port for lets say the web app that im developing inside sail ??

lets say i run it using "npm run serve" and i want to access localhost:8000 to see the web being served

how to access this from my browser?

Activity

  1. changed the title [-]How to expose another port for a web app ? [/-] [+]How to publish port on host [/+] on Sep 2, 2019
  2. ceo0x commented on Sep 2, 2019

    @ceo0x
    Author

    Is there any way to use these params on sail?
    image

  3. gilsdav commented on Sep 4, 2019

    @gilsdav

    To keep workflow as close to local development as possible, sail uses docker host networking when possible. That means if your webserver within Sail binds to :8080, it will be accessible from 127.0.0.1:8080 in your browser.

    Docker for Mac doesn’t support host networking, so this won’t work when running Sail on a Mac host. A workaround is planned for a future release of Sail.

    https://sail.dev/docs/concepts/docker/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions