Skip to content

Commit 22375d1

Browse files
committed
Ensure the litestream initializer handles nils
1 parent 75ac69c commit 22375d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/litestream/generators/litestream/templates/initializer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
# any SFTP server.
2020
# In this example, we are using Rails encrypted credentials to store the URL to
2121
# our storage provider bucket.
22-
# config.litestream.replica_bucket = litestream_credentials.replica_bucket
22+
# config.litestream.replica_bucket = litestream_credentials&.replica_bucket
2323

2424
# Replica-specific authentication key.
2525
# Litestream needs authentication credentials to access your storage provider bucket.
2626
# In this example, we are using Rails encrypted credentials to store the access key ID.
27-
# config.litestream.replica_key_id = litestream_credentials.replica_key_id
27+
# config.litestream.replica_key_id = litestream_credentials&.replica_key_id
2828

2929
# Replica-specific secret key.
3030
# Litestream needs authentication credentials to access your storage provider bucket.
3131
# In this example, we are using Rails encrypted credentials to store the secret access key.
32-
# config.litestream.replica_access_key = litestream_credentials.replica_access_key
32+
# config.litestream.replica_access_key = litestream_credentials&.replica_access_key
3333
end

0 commit comments

Comments
 (0)