Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-cli): added HOST environment variable #26712

Merged
merged 6 commits into from
Apr 19, 2021

Conversation

mgurevin
Copy link
Contributor

Description

I wanted to run develop command with a custom listener address under the container environment but I couldn't find a way to comply 12factor. So this patch considers HOST env value as the default host value if defined.

Documentation

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 30, 2020
@sidharthachatterjee sidharthachatterjee added topic: cli Related to the Gatsby CLI and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Sep 1, 2020
@wardpeet wardpeet changed the title added env.HOST to develop cmd fix(gatsby-cli): added HOST environment variable Sep 29, 2020
Copy link
Contributor

@wardpeet wardpeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for adding. Can you add it to the serve command as well so we keep things consistent?

@LekoArts LekoArts added the status: awaiting author response Additional information has been requested from the author label Oct 9, 2020
@LekoArts
Copy link
Contributor

Hi @mgurevin, is this still something you can work on?

@ascorbic
Copy link
Contributor

I'm not sure passing the port to serve as well is a good idea, as you'd expect them to be on different ports. The host could be passed though.

@ascorbic ascorbic added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Apr 19, 2021
@gatsbybot gatsbybot merged commit b1990c9 into gatsbyjs:master Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes status: awaiting author response Additional information has been requested from the author topic: cli Related to the Gatsby CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants