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 Heroku Caching #2898

Closed
wants to merge 2 commits into from
Closed

Fix Heroku Caching #2898

wants to merge 2 commits into from

Conversation

rogermparent
Copy link
Contributor

@rogermparent rogermparent commented Oct 5, 2021

This backports the script from #2851 that fixes Heroku caching by keeping the build path stable. It doesn't include any upgrades to Gatsby and its plugins, since there seems to be a lot of weirdness with sharp version mismatches.

Even with nothing else, this should speed up caching (after the first run) with very little drawbacks. #2851 is coming as well, but it'll need some babysitting as some existing Gatsby 2 apps break and need their cache turned off to re-add the new one.

It also adds a retry option to DEPLOY_OPTIONS that allows us to disable the "clear-and-retry" attempt which helps with debugging cache issues rapidly.

@rogermparent rogermparent changed the title Backport script to fix heroku caching Fix Heroku Caching Oct 5, 2021
@shcheklein shcheklein temporarily deployed to dvc-org-fix-heroku-cach-bhxluv October 5, 2021 20:44 Inactive
@rogermparent rogermparent had a problem deploying to dvc-org-fix-heroku-cach-bhxluv October 5, 2021 20:58 Failure
@rogermparent rogermparent had a problem deploying to dvc-org-fix-heroku-cach-bhxluv October 5, 2021 21:19 Failure
@rogermparent rogermparent had a problem deploying to dvc-org-fix-heroku-cach-bhxluv October 5, 2021 21:38 Failure
@rogermparent rogermparent had a problem deploying to dvc-org-fix-heroku-cach-bhxluv October 5, 2021 22:16 Failure
@rogermparent rogermparent had a problem deploying to dvc-org-fix-heroku-cach-bhxluv October 6, 2021 18:31 Failure
@rogermparent rogermparent had a problem deploying to dvc-org-fix-heroku-cach-bhxluv October 6, 2021 18:39 Failure
@rogermparent rogermparent had a problem deploying to dvc-org-fix-heroku-cach-bhxluv October 6, 2021 19:00 Failure
@rogermparent rogermparent had a problem deploying to dvc-org-fix-heroku-cach-bhxluv October 6, 2021 19:56 Failure
@rogermparent rogermparent temporarily deployed to dvc-org-fix-heroku-cach-bhxluv October 6, 2021 22:50 Inactive
@rogermparent rogermparent temporarily deployed to dvc-org-fix-heroku-cach-bhxluv October 6, 2021 23:31 Inactive
Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

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

Looks great! The only issue I noticed was that the Community/styles.module.css doesn't seem to be converted to regular css correctly:

image

It looks fine on my iphone safari, but my Windows Brave Browser and Firefox browser show the bug. I wasn't able to test on my Mac since I don't have it with me at the moment.

@rogermparent
Copy link
Contributor Author

I think you meant to reply on #2851, I got a little confused when I didn't see the issue here but found it when I checked there.

Great catch! I'll get on that.

@julieg18
Copy link
Contributor

I think you meant to reply on #2851, I got a little confused when I didn't see the issue here but found it when I checked there.

Yep 😅

@rogermparent
Copy link
Contributor Author

Closing in favor of #2851

@rogermparent rogermparent deleted the fix-heroku-caching branch November 3, 2021 13:16
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.

3 participants