Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add litestack #12

Merged
merged 8 commits into from
Dec 31, 2023
Merged

Add litestack #12

merged 8 commits into from
Dec 31, 2023

Conversation

rossta
Copy link
Contributor

@rossta rossta commented Dec 31, 2023

This changeset simply adds and configures Litestack.

The ENV var, LITESTACK_DATA_PATH, is added to point to ./storage per the recent change in Rails: rails/rails#46699

I did discover that, in order to use the "liteboard" web interface, I needed to downgrade from rack 3.x and pin to rack 2.x. Although the current version of Rails 7.1 used in joyofrails.com supports and installs rack 3, litestack depends on hanami-router, which is currently pinned to rack 2.x. (I only discovered this issue after attempting to load the liteboard web interface which raised a 500 with undefined method unescape for module URI—litestack was installing an old-old-old version of hanami-router 0.6.x that is incompatible with Ruby 3 because this older hanami-router did not constrain the rack version and happily installed alongside rack 3).

  • Set LITESTACK_DATA_PATH env var in production

Makes consistent with the new Rails default for sqlite3 db files:

rails/rails#46699
Unfortunately, the addition of litestack brings in dependencies on
hanami-router which is locked to rack 2.x. This means downgrading from
rack 3.x to rack 2.x—or otherwise fore-going the use of the liteboard
web interface.

For now, I've downgraded rack by making the dependency on 2.x explicit
in the Gemfile. I've also opened a new issue on hanami-router to track
progress toward Rack 3 support: hanami/router#268
@rossta rossta merged commit 4679257 into main Dec 31, 2023
2 checks passed
@rossta rossta deleted the feat/litestack branch January 7, 2024 17:54
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.

1 participant