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

use program directory over cwd #1478

Merged
merged 1 commit into from Jul 12, 2017
Merged

Conversation

craigmulligan
Copy link

No description provided.

@gatsbybot
Copy link
Collaborator

Deploy preview ready!

Built with commit a2881df

https://deploy-preview-1478--using-drupal.netlify.com

@KyleAMathews
Copy link
Contributor

Deploy preview failed.

Built with commit a2881df

https://app.netlify.com/sites/gatsbygram/deploys/5965b36b8ebdd913649a6c69

@gatsbybot
Copy link
Collaborator

Deploy preview ready!

Built with commit a2881df

https://deploy-preview-1478--gatsbyjs.netlify.com

@KyleAMathews KyleAMathews merged commit 96b6d84 into gatsbyjs:master Jul 12, 2017
@KyleAMathews
Copy link
Contributor

Thanks!

@@ -88,7 +88,7 @@ async function startServer(program) {
app.use((req, res, next) => {
const parsedPath = parsePath(req.originalUrl)
if (parsedPath.extname === `` || parsedPath.extname === `.html`) {
res.sendFile(`${process.cwd()}/public/index.html`, err => {
res.sendFile(`${program.directory()}/public/index.html`, err => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be incorrect as program.directory is not a function. gatsby-dev-cli is breaking for me because of this. I'll fix in a PR shortly.

Copy link
Author

Choose a reason for hiding this comment

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

Ah yea, that's my bad! Thanks for PR'ing the fix 👍

Copy link
Author

Choose a reason for hiding this comment

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

Interesting that some of the CI deploys worked? Looks like we have may have false positives.

KyleAMathews pushed a commit that referenced this pull request Jul 13, 2017
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

4 participants