Skip to content

Commit

Permalink
Update tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
heroku-linguist[bot] committed Oct 21, 2024
1 parent 2d8bb76 commit 3cae4e0
Showing 1 changed file with 20 additions and 231 deletions.
251 changes: 20 additions & 231 deletions docs/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ Now build an image named `my-image-name` by executing the heroku builder against

```
$ pack build my-image-name --path .
24: Pulling from heroku/builder
Digest: sha256:577b297e0f86f33607a2c32fe06a734b2e6eb8639deec3295b4d67e943a8c964
Status: Image is up to date for heroku/builder:24
24: Pulling from heroku/heroku
Digest: sha256:b2e3a768f6a89d3c47def9bda468b15eb9ba66ca4973e05546417b99bdefe94a
Status: Image is up to date for heroku/heroku:24
===> ANALYZING
Image with name "my-image-name" not found
===> DETECTING
Expand Down Expand Up @@ -164,186 +158,22 @@ Installing application metrics scripts
- Metrics agent
- Skipping install (`barnes` gem not found)
- Ruby version `3.2.4` from `Gemfile.lock`
- Installing .... (1.153s)
- Installing ...
- Bundler version `2.5.9` from `Gemfile.lock`
- Running `gem install bundler --version 2.5.9` ... (0.496s)
- Running `gem install bundler --version 2.5.9` ...
- Bundle install
- Running `BUNDLE_BIN="/layers/heroku_ruby/gems/bin" BUNDLE_CLEAN="1" BUNDLE_DEPLOYMENT="1" BUNDLE_GEMFILE="/workspace/Gemfile" BUNDLE_PATH="/layers/heroku_ruby/gems" BUNDLE_WITHOUT="development:test" bundle install`
Fetching gem metadata from https://rubygems.org/.........
Fetching rake 13.2.1
Installing rake 13.2.1
Fetching bigdecimal 3.1.8
Fetching base64 0.2.0
Fetching concurrent-ruby 1.2.3
Fetching connection_pool 2.4.1
Installing bigdecimal 3.1.8 with native extensions
Installing connection_pool 2.4.1
Installing base64 0.2.0
Fetching drb 2.2.1
Fetching minitest 5.23.0
Installing drb 2.2.1
Installing minitest 5.23.0
Fetching mutex_m 0.2.0
Installing concurrent-ruby 1.2.3
Installing mutex_m 0.2.0
Fetching builder 3.2.4
Installing builder 3.2.4
Fetching erubi 1.12.0
Installing erubi 1.12.0
Fetching racc 1.7.3
Fetching crass 1.0.6
Installing racc 1.7.3 with native extensions
Installing crass 1.0.6
Fetching rack 3.0.11
Installing rack 3.0.11
Fetching nio4r 2.7.3
Fetching websocket-extensions 0.1.5
Installing websocket-extensions 0.1.5
Installing nio4r 2.7.3 with native extensions
Fetching zeitwerk 2.6.14
Installing zeitwerk 2.6.14
Fetching timeout 0.4.1
Installing timeout 0.4.1
Fetching marcel 1.0.4
Installing marcel 1.0.4
Fetching mini_mime 1.1.5
Installing mini_mime 1.1.5
Fetching date 3.3.4
Installing date 3.3.4 with native extensions
Fetching msgpack 1.7.2
Installing msgpack 1.7.2 with native extensions
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching execjs 2.8.1
Installing execjs 2.8.1
Fetching stringio 3.1.0
Installing stringio 3.1.0 with native extensions
Fetching io-console 0.7.2
Installing io-console 0.7.2 with native extensions
Fetching webrick 1.8.1
Installing webrick 1.8.1
Fetching thor 1.3.1
Installing thor 1.3.1
Fetching ffi 1.16.3
Installing ffi 1.16.3 with native extensions
Fetching rb-fsevent 0.11.2
Installing rb-fsevent 0.11.2
Fetching pg 1.5.6
Installing pg 1.5.6 with native extensions
Fetching tilt 2.1.0
Installing tilt 2.1.0
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching i18n 1.14.5
Installing i18n 1.14.5
Fetching tzinfo 2.0.6
Installing tzinfo 2.0.6
Fetching rack-session 2.0.0
Installing rack-session 2.0.0
Fetching rack-test 2.1.0
Installing rack-test 2.1.0
Fetching sprockets 4.2.0
Installing sprockets 4.2.0
Fetching websocket-driver 0.7.6
Installing websocket-driver 0.7.6 with native extensions
Fetching net-protocol 0.2.2
Installing net-protocol 0.2.2
Fetching nokogiri 1.16.5 (x86_64-linux)
Installing nokogiri 1.16.5 (x86_64-linux)
Fetching puma 6.4.2
Installing puma 6.4.2 with native extensions
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching uglifier 4.2.0
Installing uglifier 4.2.0
Fetching psych 5.1.2
Installing psych 5.1.2 with native extensions
Fetching bootsnap 1.18.3
Installing bootsnap 1.18.3 with native extensions
Fetching rackup 2.1.0
Installing rackup 2.1.0
Fetching reline 0.5.7
Installing reline 0.5.7
Fetching turbolinks 5.2.1
Installing turbolinks 5.2.1
Fetching net-imap 0.4.11
Installing net-imap 0.4.11
Fetching net-pop 0.1.2
Installing net-pop 0.1.2
Fetching net-smtp 0.5.0
Installing net-smtp 0.5.0
Fetching loofah 2.22.0
Installing loofah 2.22.0
Fetching activesupport 7.1.3.2
Installing activesupport 7.1.3.2
Fetching rdoc 6.6.3.1
Installing rdoc 6.6.3.1
Fetching mail 2.8.1
Installing mail 2.8.1
Fetching rails-html-sanitizer 1.6.0
Installing rails-html-sanitizer 1.6.0
Fetching rails-dom-testing 2.2.0
Installing rails-dom-testing 2.2.0
Fetching globalid 1.2.1
Installing globalid 1.2.1
Fetching activemodel 7.1.3.2
Installing activemodel 7.1.3.2
Fetching irb 1.13.1
Installing irb 1.13.1
Fetching sdoc 2.6.1
Installing sdoc 2.6.1
Fetching actionview 7.1.3.2
Installing actionview 7.1.3.2
Fetching activejob 7.1.3.2
Installing activejob 7.1.3.2
Fetching activerecord 7.1.3.2
Installing activerecord 7.1.3.2
Fetching actionpack 7.1.3.2
Installing actionpack 7.1.3.2
Fetching jbuilder 2.12.0
Installing jbuilder 2.12.0
Fetching actioncable 7.1.3.2
Installing actioncable 7.1.3.2
Fetching activestorage 7.1.3.2
Installing activestorage 7.1.3.2
Fetching actionmailer 7.1.3.2
Installing actionmailer 7.1.3.2
Fetching railties 7.1.3.2
Installing railties 7.1.3.2
Fetching sprockets-rails 3.4.2
Installing sprockets-rails 3.4.2
Fetching actionmailbox 7.1.3.2
Installing actionmailbox 7.1.3.2
Fetching actiontext 7.1.3.2
Installing actiontext 7.1.3.2
Fetching coffee-rails 5.0.0
Installing coffee-rails 5.0.0
Fetching jquery-rails 4.6.0
Installing jquery-rails 4.6.0
Fetching rails 7.1.3.2
Installing rails 7.1.3.2
Fetching rb-inotify 0.10.1
Fetching sassc 2.4.0
Installing rb-inotify 0.10.1
Fetching listen 3.9.0
Installing sassc 2.4.0 with native extensions
Installing listen 3.9.0
Fetching sassc-rails 2.1.2
Installing sassc-rails 2.1.2
Fetching sass-rails 6.0.0
Installing sass-rails 6.0.0
Bundle complete! 13 Gemfile dependencies, 82 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `/layers/heroku_ruby/gems`
- Done (1m 27s)
- Done
- Setting default processes
- Running `bundle list` ... (0.166s)
- Running `bundle list` ...
- Detected rails app (`rails` gem found)
- Rake assets install
- Detected rake (`rake` gem found, `Rakefile` found at `/workspace/Rakefile`)
- Running `bundle exec rake -P --trace` .... (1.470s)
- Running `bundle exec rake -P --trace` ...
- Compiling assets with cache (detected `rake assets:precompile` and `rake assets:clean` via `bundle exec rake -P`)
- Creating cache for /workspace/public/assets
- Creating cache for /workspace/tmp/cache/assets
Expand All @@ -355,49 +185,14 @@ Installing application metrics scripts
** Invoke environment (first_time)
** Execute environment
** Execute assets:precompile
I, [2024-10-14T00:24:45.980592 #1512] INFO -- : Writing /workspace/public/assets/manifest-dad05bf766af0fe3d79dd746db3c1361c0583026cdf35d6a2921bccaea835331.js
I, [2024-10-14T00:24:45.980795 #1512] INFO -- : Writing /workspace/public/assets/manifest-dad05bf766af0fe3d79dd746db3c1361c0583026cdf35d6a2921bccaea835331.js.gz
I, [2024-10-14T00:24:45.981121 #1512] INFO -- : Writing /workspace/public/assets/lang-logo-b6c7c4b6a37e9c2425ca4d54561010c0719870ae325c849de398499f1ab098a9.png
I, [2024-10-14T00:24:45.981466 #1512] INFO -- : Writing /workspace/public/assets/application-9ced36c9568ebfd1053e04ba411af767274dfcccd9807c0989f8bd17ca5e8f5b.js
I, [2024-10-14T00:24:45.981609 #1512] INFO -- : Writing /workspace/public/assets/application-9ced36c9568ebfd1053e04ba411af767274dfcccd9807c0989f8bd17ca5e8f5b.js.gz
I, [2024-10-14T00:24:45.982117 #1512] INFO -- : Writing /workspace/public/assets/welcome-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js
I, [2024-10-14T00:24:45.982233 #1512] INFO -- : Writing /workspace/public/assets/welcome-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js.gz
I, [2024-10-14T00:24:45.982364 #1512] INFO -- : Writing /workspace/public/assets/widgets-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js
I, [2024-10-14T00:24:45.982557 #1512] INFO -- : Writing /workspace/public/assets/widgets-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js.gz
I, [2024-10-14T00:24:45.982693 #1512] INFO -- : Writing /workspace/public/assets/application-776d900b9840362472b5b6b4afb9b798c78d53098a77b289b8bfc22c6d241913.css
I, [2024-10-14T00:24:45.982787 #1512] INFO -- : Writing /workspace/public/assets/application-776d900b9840362472b5b6b4afb9b798c78d53098a77b289b8bfc22c6d241913.css.gz
I, [2024-10-14T00:24:45.982947 #1512] INFO -- : Writing /workspace/public/assets/scaffolds-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2024-10-14T00:24:45.983047 #1512] INFO -- : Writing /workspace/public/assets/scaffolds-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
I, [2024-10-14T00:24:45.983181 #1512] INFO -- : Writing /workspace/public/assets/theme-776d900b9840362472b5b6b4afb9b798c78d53098a77b289b8bfc22c6d241913.css
I, [2024-10-14T00:24:45.983272 #1512] INFO -- : Writing /workspace/public/assets/theme-776d900b9840362472b5b6b4afb9b798c78d53098a77b289b8bfc22c6d241913.css.gz
I, [2024-10-14T00:24:45.983401 #1512] INFO -- : Writing /workspace/public/assets/welcome-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2024-10-14T00:24:45.983491 #1512] INFO -- : Writing /workspace/public/assets/welcome-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
I, [2024-10-14T00:24:45.983617 #1512] INFO -- : Writing /workspace/public/assets/widgets-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2024-10-14T00:24:45.983713 #1512] INFO -- : Writing /workspace/public/assets/widgets-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
I, [2024-10-14T00:24:45.983859 #1512] INFO -- : Writing /workspace/public/assets/actiontext-78de0ebeae470799f9ec25fd0e20ae2d931df88c2ff9315918d1054a2fca2596.js
I, [2024-10-14T00:24:45.983956 #1512] INFO -- : Writing /workspace/public/assets/actiontext-78de0ebeae470799f9ec25fd0e20ae2d931df88c2ff9315918d1054a2fca2596.js.gz
I, [2024-10-14T00:24:45.984098 #1512] INFO -- : Writing /workspace/public/assets/actiontext.esm-328ef022563f73c1b9b45ace742bd21330da0f6bd6c1c96d352d52fc8b8857e5.js
I, [2024-10-14T00:24:45.984211 #1512] INFO -- : Writing /workspace/public/assets/actiontext.esm-328ef022563f73c1b9b45ace742bd21330da0f6bd6c1c96d352d52fc8b8857e5.js.gz
I, [2024-10-14T00:24:45.984346 #1512] INFO -- : Writing /workspace/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js
I, [2024-10-14T00:24:45.984443 #1512] INFO -- : Writing /workspace/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js.gz
I, [2024-10-14T00:24:45.984583 #1512] INFO -- : Writing /workspace/public/assets/trix-5552afe828fe79c41e53b9cc3616e9d7b8c2de1979ea62cbd663b88426ec41de.css
I, [2024-10-14T00:24:45.984686 #1512] INFO -- : Writing /workspace/public/assets/trix-5552afe828fe79c41e53b9cc3616e9d7b8c2de1979ea62cbd663b88426ec41de.css.gz
I, [2024-10-14T00:24:45.985977 #1512] INFO -- : Writing /workspace/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js
I, [2024-10-14T00:24:45.986364 #1512] INFO -- : Writing /workspace/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz
I, [2024-10-14T00:24:45.987159 #1512] INFO -- : Writing /workspace/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js
I, [2024-10-14T00:24:45.987277 #1512] INFO -- : Writing /workspace/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz
I, [2024-10-14T00:24:45.987420 #1512] INFO -- : Writing /workspace/public/assets/actioncable-1c7f008c6deb7b55c6878be38700ff6bf56b75444a086fa1f46e3b781365a3ea.js
I, [2024-10-14T00:24:45.987521 #1512] INFO -- : Writing /workspace/public/assets/actioncable-1c7f008c6deb7b55c6878be38700ff6bf56b75444a086fa1f46e3b781365a3ea.js.gz
I, [2024-10-14T00:24:45.987671 #1512] INFO -- : Writing /workspace/public/assets/actioncable.esm-06609b0ecaffe2ab952021b9c8df8b6c68f65fc23bee728fc678a2605e1ce132.js
I, [2024-10-14T00:24:45.987774 #1512] INFO -- : Writing /workspace/public/assets/actioncable.esm-06609b0ecaffe2ab952021b9c8df8b6c68f65fc23bee728fc678a2605e1ce132.js.gz
** Invoke assets:clean (first_time)
** Invoke assets:environment
** Execute assets:clean
- Done (1.271s)
- Done
- Storing cache for /workspace/public/assets
- Storing cache for /workspace/tmp/cache/assets
- Done (finished in 1m 32s)
- Done
[Discovering process types]
Procfile declares types -> web
Expand All @@ -421,7 +216,7 @@ Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'web'
Saving my-image-name...
*** Images (3af8aab6885c):
*** Images (abcdef012345):
my-image-name
Adding cache layer 'heroku/nodejs-engine:dist'
Adding cache layer 'heroku/ruby:bundler'
Expand All @@ -440,7 +235,7 @@ Verify that you see “Successfully built image my-image-name” at the end of t

```
$ docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}" | grep my-image-name
3af8aab6885c my-image-name latest
abcdef012345 my-image-name latest
```
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->

Expand Down Expand Up @@ -470,12 +265,12 @@ After the detect phase, each buildpack will execute. Buildpacks can inspect your
Fetching gem metadata from https://rubygems.org/.........
Fetching rake 13.2.1
Installing rake 13.2.1
Fetching bigdecimal 3.1.8
Fetching base64 0.2.0
Fetching concurrent-ruby 1.2.3
Fetching connection_pool 2.4.1
Installing bigdecimal 3.1.8 with native extensions
Installing connection_pool 2.4.1
Fetching bigdecimal 3.1.8
Fetching concurrent-ruby 1.2.3
Installing base64 0.2.0
Fetching drb 2.2.1
```
<!-- STOP. This document is autogenerated. Do not manually modify. See the top of the doc for more details. -->

Expand Down Expand Up @@ -624,7 +419,7 @@ Language support is provided by individual buildpacks that are shipped with the

In addition to this auto-detection behavior, you can specify buildpacks through the `--buildpack` flag with the `pack` CLI or through a [project.toml](https://buildpacks.io/docs/for-app-developers/how-to/build-inputs/specify-buildpacks/) file at the root of your application.

For example, if you wanted to install both Ruby, NodeJS and Python you could create a `project.toml` file in the root of your application and specify those buildpacks.
For example, if you wanted to install both Ruby, Node.js and Python you could create a `project.toml` file in the root of your application and specify those buildpacks.

In file `project.toml` write:

Expand Down Expand Up @@ -658,12 +453,6 @@ Warning: The following keys declared in project.toml are not supported in schema
Warning: - _.id
Warning: - _.version
Warning: The above keys will be ignored. If this is not intentional, try updating your schema version.
24: Pulling from heroku/builder
Digest: sha256:577b297e0f86f33607a2c32fe06a734b2e6eb8639deec3295b4d67e943a8c964
Status: Image is up to date for heroku/builder:24
24: Pulling from heroku/heroku
Digest: sha256:b2e3a768f6a89d3c47def9bda468b15eb9ba66ca4973e05546417b99bdefe94a
Status: Image is up to date for heroku/heroku:24
===> ANALYZING
Restoring data for SBOM from previous image
===> DETECTING
Expand All @@ -675,11 +464,11 @@ heroku/procfile 3.1.2
Restoring metadata for "heroku/nodejs-engine:dist" from app image
Restoring metadata for "heroku/nodejs-engine:node_runtime_metrics" from app image
Restoring metadata for "heroku/nodejs-engine:web_env" from app image
Restoring metadata for "heroku/ruby:ruby" from app image
Restoring metadata for "heroku/ruby:bundler" from app image
Restoring metadata for "heroku/ruby:cache_public_assets" from app image
Restoring metadata for "heroku/ruby:cache_tmp_cache_assets" from app image
Restoring metadata for "heroku/ruby:gems" from app image
Restoring metadata for "heroku/ruby:ruby" from app image
Restoring data for "heroku/nodejs-engine:dist" from cache
Restoring data for "heroku/ruby:bundler" from cache
Restoring data for "heroku/ruby:cache_public_assets" from cache
Expand Down Expand Up @@ -726,11 +515,11 @@ Installing application metrics scripts
- Skipping `bundle install` (no changes found in /workspace/Gemfile, /workspace/Gemfile.lock, or user configured environment variables)
- ! HELP To force run `bundle install` set `HEROKU_SKIP_BUNDLE_DIGEST=1`
- Setting default processes
- Running `bundle list` ... (0.168s)
- Running `bundle list` ...
- Detected rails app (`rails` gem found)
- Rake assets install
- Detected rake (`rake` gem found, `Rakefile` found at `/workspace/Rakefile`)
- Running `bundle exec rake -P --trace` .... (1.498s)
- Running `bundle exec rake -P --trace` ...
- Compiling assets with cache (detected `rake assets:precompile` and `rake assets:clean` via `bundle exec rake -P`)
- Loading cache for /workspace/public/assets
- Loading cache for /workspace/tmp/cache/assets
Expand All @@ -746,10 +535,10 @@ Installing application metrics scripts
** Invoke assets:environment
** Execute assets:clean
- Done (0.943s)
- Done
- Storing cache for /workspace/public/assets
- Storing cache for /workspace/tmp/cache/assets
- Done (finished in 2.819s)
- Done
[Discovering process types]
Procfile declares types -> web
Expand All @@ -775,7 +564,7 @@ Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'web'
Saving my-image-name...
*** Images (0914ec9fe1bb):
*** Images (abcdef012345):
my-image-name
Adding cache layer 'heroku/python:pip'
Adding cache layer 'heroku/python:pip-cache'
Expand Down

0 comments on commit 3cae4e0

Please sign in to comment.