-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update deploy steps to use RAILS_MASTER_KEY
- Loading branch information
Showing
2 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# kindly generated by appropriated Rails generator | ||
Mailjet.configure do |config| | ||
config.api_key = Rails.application.credentials.mailjet[:api_key] | ||
config.secret_key = Rails.application.credentials.mailjet[:secret_key] | ||
config.default_from = "[email protected]" | ||
# Mailjet API v3.1 is at the moment limited to Send API. | ||
# We’ve not set the version to it directly since there is no other endpoint in that version. | ||
# We recommend you create a dedicated instance of the wrapper set with it to send your emails. | ||
# If you're only using the gem to send emails, then you can safely set it to this version. | ||
# Otherwise, you can remove the dedicated line into config/initializers/mailjet.rb. | ||
config.api_version = "v3.1" | ||
|
||
if Rails.application.credentials.mailjet.present? | ||
Mailjet.configure do |config| | ||
config.api_key = Rails.application.credentials.mailjet.api_key | ||
config.secret_key = Rails.application.credentials.mailjet.secret_key | ||
config.default_from = "[email protected]" | ||
# Mailjet API v3.1 is at the moment limited to Send API. | ||
# We’ve not set the version to it directly since there is no other endpoint in that version. | ||
# We recommend you create a dedicated instance of the wrapper set with it to send your emails. | ||
# If you're only using the gem to send emails, then you can safely set it to this version. | ||
# Otherwise, you can remove the dedicated line into config/initializers/mailjet.rb. | ||
config.api_version = "v3.1" | ||
end | ||
end |