heroku / heroku-buildpack-static

[DEPRECATED] Heroku buildpack for handling static sites and single page web apps
MIT License
673 stars 427 forks source link

Output a helpful error message when no static.json is found #202

Closed edmorley closed 3 years ago

edmorley commented 3 years ago

The error message is now output to stderr otherwise it's not shown.

Closes GUS-W-8799430. Refs #198.

edmorley commented 3 years ago

Before:

remote: -----> Building on the Heroku-20 stack
remote: -----> App not compatible with buildpack: https://github.com/heroku/heroku-buildpack-static
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure

After:

remote: -----> Building on the Heroku-20 stack
remote: -----> App not compatible with buildpack: https://github.com/heroku/heroku-buildpack-static#edmorley/improve-detect-ux
remote:        Could not find 'static.json'! Please ensure it exists and is checked into Git.
remote:
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure