Skip to content

Generate JRuby-compatible apps from hanami new on JRuby - #483

Merged
timriley merged 1 commit into
mainfrom
jruby-new-app
Nov 27, 2026
Merged

timriley merged 1 commit into
mainfrom
jruby-new-app

Conversation

@timriley

Copy link
Copy Markdown
Member

When run on JRuby, hanami new now uses the JDBC driver gem (jdbc-sqlite3, jdbc-postgres or jdbc-mysql), sets a jdbc: DATABASE_URL in .env, and leaves out Puma's cluster mode settings, since JRuby can't fork workers. Previously the generated app failed at bundle install.

Also stop bin/setup from running npm install in apps generated with --skip-assets.

When run on JRuby, `hanami new` now uses the JDBC driver gem (jdbc-sqlite3, jdbc-postgres or jdbc-mysql), sets a `jdbc:` DATABASE_URL in `.env`, and leaves out Puma's cluster mode settings, since JRuby can't fork workers. Previously the generated app failed at `bundle install`.

Also stop `bin/setup` from running `npm install` in apps generated with `--skip-assets`.

@katafrakt katafrakt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice!

@timriley
timriley merged commit 8547aa8 into main Nov 27, 2026
19 checks passed
@timriley
timriley deleted the jruby-new-app branch November 27, 2026 12:42
@katafrakt katafrakt mentioned this pull request Nov 27, 2026
1 of 5 tasks
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.

2 participants