fractaledmind / enlitenment

A Rails application template script to lead your app to SQLite enlightenment.
45 stars 4 forks source link

[Suggestion] Include sample litestream credential config #4

Closed thedumbtechguy closed 3 months ago

thedumbtechguy commented 3 months ago

Right now, the generator just tells you to configure credentials and uncomments the config. We could include an example of what that config looks like to make it easier.

fractaledmind commented 3 months ago

Example of the config to put in the Rails credentials?

thedumbtechguy commented 3 months ago

Yep.

fractaledmind commented 3 months ago

I have added sample structure for what to put in one's credentials, cleaned out the output formatting, and removed all prompts. Everything is now driven by environment variables.

fractaledmind commented 3 months ago

Output for this step should now look like this:

        NOTE    Edit your application's credentials to store your bucket details with:
                    bin/rails credentials:edit
                Supply the necessary credentials for your S3-compatible storage provider in the following format:
                    litestream:
                      replica_bucket: <your-bucket-name>
                      replica_key_id: <public-key>
                      replica_access_key: <private-key>
                You can confirm that everything is configured correctly by running and inspecting the output of the following command:
                    bin/rails litestream:env
thedumbtechguy commented 3 months ago

Just run it and it went zoooooom. all working correctly