heroku-buildpack-ruby
bootsnap
heroku-buildpack-ruby | bootsnap | |
---|---|---|
10 | 4 | |
784 | 2,642 | |
-0.1% | 0.3% | |
7.8 | 8.0 | |
11 days ago | about 1 month ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
heroku-buildpack-ruby
-
Heroku Deployment Failing After Upgrade to Rails 7
Did you find this article? https://github.com/heroku/heroku-buildpack-ruby/issues/1202
- Fazendo deploy em produção com Rails, PostgreSQL e Dokku
-
Cut your Rails boot times on Heroku in half with a single command
There is a Github issue on this topic in the heroku-ruby-buildpack repo with some success stories in the comment section and a hint that build-in-app-dir may become the default behaviour in the future.
-
Bootsnap and Spring, Understanding rails boot time optimisations
For instance the way Heroku used to build apps defeated a good part of Bootsnap usefulness, actually making it slow boot time, but they fixed that recently https://github.com/heroku/heroku-buildpack-ruby/issues/979.
-
Rails System Tests with Headless Chrome on Heroku CI
{ "environments": { "test": { "buildpacks": [ { "url": "https://github.com/heroku/heroku-buildpack-ruby" }, { "url": "https://github.com/heroku/heroku-buildpack-chromedriver" }, { "url": "https://github.com/heroku/heroku-buildpack-google-chrome" } ], "addons": [ "heroku-postgresql" ], "scripts": { "test-setup": "bin/rails assets:precompile", "test": "bin/rspec" } } } }
-
Continuous Delivery With Heroku
{ "env":{ "RAILS_MASTER_KEY":{ "require":true } }, "scripts":{ "postdeploy":"bin/bundle exec rake db:migrate rake db:seed" }, "addons":[ { "plan":"heroku-postgresql:free" }, { "plan":"heroku-postgresql:free", "as":"audit" }, { "plan":"rediscloud:free" }, { "plan": "rollbar:free" } ], "buildpacks":[ { "url":"https://github.com/heroku/heroku-buildpack-ruby" } ] }
- Rails 6.1.3 on Heroku - Wrong secret_key_base
- Rails 6.1.3 - Wrong secret_key_base
-
Webpacker + Heroku : when to launch webpacker:compile ?
This answer might help you OP, schneems says (in 2017 mind) that you need to manually define the missing assets:precompile task.
- Rails on Heroku - long delay in app when deploying
bootsnap
-
Abstract Methods and NotImplementedError in Ruby
Indeed, I did not mention Bootsnap so as to detract the core point.
> That's one of the things Bootsnap does to speedup boot time. And when you do that, there's no compilation at runtime.
Correct, if one does `bootsnap precompile`.
Bootsnap hooks itself on `Kernel#load` + `Kernel#require` and `RubyVM::InstructionSequence#load_iseq`:
https://github.com/Shopify/bootsnap/blob/f627992c52642394311...
https://github.com/Shopify/bootsnap/blob/f627992c52642394311...
https://github.com/Shopify/bootsnap/blob/f627992c52642394311...
https://github.com/Shopify/bootsnap/blob/f627992c52642394311...
Essentially this means that it makes LOAD_PATH lookup faster + intercepts iseq compilation to store to cache on a miss and return a cached version on a hit.
That does not change the load order.
> But that doesn't change anything about OP's suggestion, it's still impossible to know if an interface will ever be implemented.
Again correct, as even with `bootsnap precompile` it would only result in earlier ISeq generation (it is essentially cache priming instead of doing it "lazily" on demand), not the time at which these ISeq get loaded and effective, so even then an `abstract` keyword would be ineffective.
-
Long story short: I build a Ruby extension with Zig
I always had mixed feelings about writing native Ruby extensions. They surely are the way to make critical parts of the code run faster, but the developer experience around that was not great for a Ruby programmer like me. Sure, I know C. This was the second language I learned (after Pascal). I can write C, I can read C, and I even wrote some larger extensions in it, but I never felt comfortable with it.
- Acelerando o boot da sua aplicação Rails
-
Cut your Rails boot times on Heroku in half with a single command
To alleviate this problem, the engineers at Shopify created bootsnap, a gem which automatically detects and caches exact load paths to make those require calls fast (see Bootsnap: Optimizing Ruby App Boot Time for details).
What are some alternatives?
dokku-letsencrypt - Automatic Let's Encrypt TLS Certificate installation for dokku
wordmove - Multi-stage command line deploy/mirroring and task runner for Wordpress
dokku-postgres - a postgres plugin for dokku
Coltrane - 🎹🎸A music theory library with a command-line interface
heroku-buildpack-chromedriver - [DEPRECATED] Use https://github.com/heroku/heroku-buildpack-chrome-for-testing instead.
zig-ruby
super_spreader - ActiveJob-based backfill orchestration library
memo_wise - The wise choice for Ruby memoization
snapcrawl - Crawl a website and take screenshots
colorls - A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. :tada:
paralines - Nice output to console/file from concurrent threads