Created
May 28, 2026 15:06
-
-
Save headius/0e8addffdd42c1157b4ca81508c8adce to your computer and use it in GitHub Desktop.
Example rails new session with JRuby template for JDBC adapters
This file contains hidden or 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
| [] jruby $ rails new --skip-kamal --template https://www.jruby.org/files/rails/8.0.rb blog | |
| create | |
| create README.md | |
| create Rakefile | |
| create .ruby-version | |
| create config.ru | |
| create .gitignore | |
| create .gitattributes | |
| create Gemfile | |
| run git init from "." | |
| Initialized empty Git repository in /Users/headius/work/jruby/blog/.git/ | |
| create app | |
| create app/assets/stylesheets/application.css | |
| create app/controllers/application_controller.rb | |
| create app/helpers/application_helper.rb | |
| create app/jobs/application_job.rb | |
| create app/mailers/application_mailer.rb | |
| create app/models/application_record.rb | |
| create app/views/layouts/application.html.erb | |
| create app/views/layouts/mailer.html.erb | |
| create app/views/layouts/mailer.text.erb | |
| create app/views/pwa/manifest.json.erb | |
| create app/views/pwa/service-worker.js | |
| create app/assets/images | |
| create app/assets/images/.keep | |
| create app/controllers/concerns/.keep | |
| create app/models/concerns/.keep | |
| create bin | |
| create bin/brakeman | |
| create bin/dev | |
| create bin/rails | |
| create bin/rake | |
| create bin/rubocop | |
| create bin/setup | |
| create bin/thrust | |
| create Dockerfile | |
| create .dockerignore | |
| create bin/docker-entrypoint | |
| create .rubocop.yml | |
| create .github/workflows | |
| create .github/workflows/ci.yml | |
| create .github/dependabot.yml | |
| create config | |
| create config/routes.rb | |
| create config/application.rb | |
| create config/environment.rb | |
| create config/cable.yml | |
| create config/puma.rb | |
| create config/storage.yml | |
| create config/environments | |
| create config/environments/development.rb | |
| create config/environments/production.rb | |
| create config/environments/test.rb | |
| create config/initializers | |
| create config/initializers/assets.rb | |
| create config/initializers/content_security_policy.rb | |
| create config/initializers/cors.rb | |
| create config/initializers/filter_parameter_logging.rb | |
| create config/initializers/inflections.rb | |
| create config/initializers/new_framework_defaults_8_0.rb | |
| create config/locales | |
| create config/locales/en.yml | |
| create config/master.key | |
| append .gitignore | |
| create config/boot.rb | |
| create config/database.yml | |
| create db | |
| create db/seeds.rb | |
| create lib | |
| create lib/tasks | |
| create lib/tasks/.keep | |
| create log | |
| create log/.keep | |
| create public | |
| create public/400.html | |
| create public/404.html | |
| create public/406-unsupported-browser.html | |
| create public/422.html | |
| create public/500.html | |
| create public/icon.png | |
| create public/icon.svg | |
| create public/robots.txt | |
| create script | |
| create script/.keep | |
| create tmp | |
| create tmp/.keep | |
| create tmp/pids | |
| create tmp/pids/.keep | |
| create vendor | |
| create vendor/.keep | |
| create test/fixtures/files | |
| create test/fixtures/files/.keep | |
| create test/controllers | |
| create test/controllers/.keep | |
| create test/mailers | |
| create test/mailers/.keep | |
| create test/models | |
| create test/models/.keep | |
| create test/helpers | |
| create test/helpers/.keep | |
| create test/integration | |
| create test/integration/.keep | |
| create test/test_helper.rb | |
| create test/system | |
| create test/system/.keep | |
| create test/application_system_test_case.rb | |
| create storage | |
| create storage/.keep | |
| create tmp/storage | |
| create tmp/storage/.keep | |
| remove config/initializers/cors.rb | |
| remove config/initializers/new_framework_defaults_8_0.rb | |
| apply https://www.jruby.org/files/rails/8.0.rb | |
| gsub Gemfile | |
| run bundle install --quiet | |
| run bundle binstubs bundler | |
| Bundler itself does not use binstubs because its version is selected by RubyGems | |
| rails importmap:install | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism.rb:95: warning: already initialized constant Prism::BACKEND | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism/ffi.rb:28: warning: already initialized constant Prism::LibRubyParser::INCLUDE_DIR | |
| apply /Users/headius/work/jruby/lib/ruby/gems/shared/gems/importmap-rails-2.2.3/lib/install/install.rb | |
| Add Importmap include tags in application layout | |
| insert app/views/layouts/application.html.erb | |
| Create application.js module as entrypoint | |
| create app/javascript/application.js | |
| Use vendor/javascript for downloaded pins | |
| create vendor/javascript | |
| create vendor/javascript/.keep | |
| Configure importmap paths in config/importmap.rb | |
| create config/importmap.rb | |
| Copying binstub | |
| create bin/importmap | |
| run bundle install --quiet | |
| rails turbo:install stimulus:install | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism.rb:95: warning: already initialized constant Prism::BACKEND | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism/ffi.rb:28: warning: already initialized constant Prism::LibRubyParser::INCLUDE_DIR | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism.rb:95: warning: already initialized constant Prism::BACKEND | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism/ffi.rb:28: warning: already initialized constant Prism::LibRubyParser::INCLUDE_DIR | |
| apply /Users/headius/work/jruby/lib/ruby/gems/shared/gems/turbo-rails-2.0.23/lib/install/turbo_with_importmap.rb | |
| Import Turbo | |
| append app/javascript/application.js | |
| Pin Turbo | |
| append config/importmap.rb | |
| run bundle install --quiet | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism.rb:95: warning: already initialized constant Prism::BACKEND | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism/ffi.rb:28: warning: already initialized constant Prism::LibRubyParser::INCLUDE_DIR | |
| apply /Users/headius/work/jruby/lib/ruby/gems/shared/gems/stimulus-rails-1.3.4/lib/install/stimulus_with_importmap.rb | |
| Create controllers directory | |
| create app/javascript/controllers | |
| create app/javascript/controllers/index.js | |
| create app/javascript/controllers/application.js | |
| create app/javascript/controllers/hello_controller.js | |
| Import Stimulus controllers | |
| append app/javascript/application.js | |
| Pin Stimulus | |
| Appending: pin "@hotwired/stimulus", to: "stimulus.min.js" | |
| append config/importmap.rb | |
| Appending: pin "@hotwired/stimulus-loading", to: "stimulus-loading.js" | |
| append config/importmap.rb | |
| Pin all controllers | |
| Appending: pin_all_from "app/javascript/controllers", under: "controllers" | |
| append config/importmap.rb | |
| run bundle install --quiet | |
| rails solid_cache:install solid_queue:install solid_cable:install | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism.rb:95: warning: already initialized constant Prism::BACKEND | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism/ffi.rb:28: warning: already initialized constant Prism::LibRubyParser::INCLUDE_DIR | |
| create config/cache.yml | |
| create db/cache_schema.rb | |
| gsub config/environments/production.rb | |
| create config/queue.yml | |
| create config/recurring.yml | |
| create db/queue_schema.rb | |
| create bin/jobs | |
| gsub config/environments/production.rb | |
| create db/cable_schema.rb | |
| force config/cable.yml | |
| Gemfile customized for JDBC and dependencies bundled successfully! | |
| [] jruby $ cd blog | |
| [] blog $ rails generate scaffold post title:string body:text published:boolean | |
| chruby: unknown Ruby: jruby-10.1.1.0-SNAPSHOT | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism.rb:95: warning: already initialized constant Prism::BACKEND | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism/ffi.rb:28: warning: already initialized constant Prism::LibRubyParser::INCLUDE_DIR | |
| invoke active_record | |
| create db/migrate/20260528150311_create_posts.rb | |
| create app/models/post.rb | |
| invoke test_unit | |
| create test/models/post_test.rb | |
| create test/fixtures/posts.yml | |
| invoke resource_route | |
| route resources :posts | |
| invoke scaffold_controller | |
| create app/controllers/posts_controller.rb | |
| invoke erb | |
| create app/views/posts | |
| create app/views/posts/index.html.erb | |
| create app/views/posts/edit.html.erb | |
| create app/views/posts/show.html.erb | |
| create app/views/posts/new.html.erb | |
| create app/views/posts/_form.html.erb | |
| create app/views/posts/_post.html.erb | |
| invoke resource_route | |
| invoke test_unit | |
| create test/controllers/posts_controller_test.rb | |
| create test/system/posts_test.rb | |
| invoke helper | |
| create app/helpers/posts_helper.rb | |
| invoke test_unit | |
| invoke jbuilder | |
| create app/views/posts/index.json.jbuilder | |
| create app/views/posts/show.json.jbuilder | |
| create app/views/posts/_post.json.jbuilder | |
| [] blog $ rake db:migrate | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism.rb:95: warning: already initialized constant Prism::BACKEND | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism/ffi.rb:28: warning: already initialized constant Prism::LibRubyParser::INCLUDE_DIR | |
| == 20260528150311 CreatePosts: migrating ====================================== | |
| -- create_table(:posts) | |
| -> 0.0117s | |
| == 20260528150311 CreatePosts: migrated (0.0123s) ============================= | |
| [] blog $ rails server | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism.rb:95: warning: already initialized constant Prism::BACKEND | |
| /Users/headius/work/jruby/lib/ruby/gems/shared/gems/prism-1.9.0/lib/prism/ffi.rb:28: warning: already initialized constant Prism::LibRubyParser::INCLUDE_DIR | |
| => Booting Puma | |
| => Rails 8.0.5 application starting in development | |
| => Run `bin/rails server --help` for more startup options | |
| Puma starting in single mode... | |
| * Puma version: 8.0.2 ("Into the Arena") | |
| * Ruby version: jruby 10.1.1.0-SNAPSHOT (4.0.0) 2026-05-22 2e078cd889 OpenJDK 64-Bit Server VM 21.0.8+9-LTS on 21.0.8+9-LTS +indy +jit [arm64-darwin] | |
| * Min threads: 3 | |
| * Max threads: 3 | |
| * Environment: development | |
| * PID: 31463 | |
| * Listening on http://[::1]:3000 | |
| * Listening on http://127.0.0.1:3000 | |
| Use Ctrl-C to stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment