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

Exit with the right status when build fails #104

Merged
merged 1 commit into from Dec 20, 2015

Conversation

fson
Copy link
Contributor

@fson fson commented Dec 16, 2015

If the build fails, exit with the failure code (1). This is done by
throwing any errors from the build instead of just logging them to
stdout like before.

The correct exit code is important when running Gatsby in a CI build,
for example. You want the build to fail so you don't deploy the site,
if it didn't build successfully.

If the build fails, exit with the failure code (1). This is done by
throwing any errors from the build instead of just logging them to
stdout like before.

The correct exit code is important when running Gatsby in a CI build,
for example. You want the build to fail so you don't deploy the site,
if it didn't build successfully.
@KyleAMathews KyleAMathews merged commit c1d6de8 into gatsbyjs:master Dec 20, 2015
KyleAMathews added a commit that referenced this pull request Dec 20, 2015
Exit with the right status when build fails

Conflicts:
	lib/utils/build.js
@KyleAMathews
Copy link
Contributor

Thanks!

gauravv-shukla added a commit to gauravv-shukla/gatsby that referenced this pull request Sep 25, 2020
Acroyoga->acroyoga(always lowercase)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants