-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Optimise Heroku deploy (#4754)
Because: - We used caching buildpacks to cache assets and dependencies to speed up deployments. But they don't make a difference anymore. The Node and Heroku buildpacks already do a good enough job at caching. - Yarn install runs twice because we are using both the Node and Ruby buildpacks - adding a few seconds onto our time to deploy - We use a slug clean up buildpack to make sure our slug size on heroku does not grow beyond the 300mb soft limit. With our switch to Js-bundling for assets, we needed to change the javascript directory that will be cleaned up. This commit: - Remove the .buildcache file as we aren't using the caching buildpacks its used with anymore. - Adds `SKIP_YARN_INSTALL` env var to CI, review apps, and the production environment. This will skip the yarn install task that is normally automatically invoked by the assets:precompile task. - Removes the yarn:install override rake task we had for Heroku. It only seemed to work for Webpacker. - Amends the slugcleanup and slugignore files to clean up the appropriate directories after our recent assets overhaul.
- Loading branch information
1 parent
6b60715
commit f5501a4
Showing
5 changed files
with
1 addition
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
app/javascript | ||
app/assets/javascripts | ||
app/assets/stylesheets | ||
node_modules | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,3 @@ spec | |
doc | ||
.github | ||
.rubocop | ||
|
||
# Ignore any javascript test files outside of spec/ | ||
*.test.js | ||
*.test.jsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters