Skip to content

Conversation

@rossta
Copy link
Contributor

@rossta rossta commented Nov 22, 2024

The Litestream Ruby config path defaults to "config/litestream.yml". Some applications may wish to use a custom configuration path, say, one that is based on the Rails environment "config/litestream/#{Rails.env}.yml"

Though Litestream::Commands methods allow for passing a --config option for the config path, helper methods like Litestream.verify!, which wraps Litestream::Commands.databases and the Puma plugin, which wraps Litestream::Commands.replicate, do not.

This changeset adds the ability to configure an application-wide default for the litestream config path allows for use of features like Litestream.verify! and the Puma plugin without otherwise having to modify these features to accept the --config option.

Though Litestream::Commands methods allow for passing a --config option
for the config path, helper methods like Litestream.verify!, which wraps
Litestream::Commands.databases and the Puma plugin, which wraps
Litestream::Commands.replicate, do not.

This changeset adds the ability to configure an application-wide default
for the litestream config path allows for use of features like
Litestream.verify! and the Puma plugin without otherwise having to
modify these features to accept the --config option.
@hschne
Copy link
Contributor

hschne commented May 29, 2025

@fractaledmind I'm running litestream-ruby on various environments (e.g. staging), the ability to specify the config would go a long way! 🙌

@fractaledmind fractaledmind merged commit 716a03c into fractaledmind:main Jun 3, 2025
10 checks passed
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.

3 participants