Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created July 13, 2016 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/08a33eefe681fe00313a85a59df643e7 to your computer and use it in GitHub Desktop.
Save anonymous/08a33eefe681fe00313a85a59df643e7 to your computer and use it in GitHub Desktop.
# Pastebin 1KMrS3mK
configure :production do
Paperclip::Attachment.default_options.merge!(
storage: :s3,
s3_credentials: {
bucket: ENV['S3_BUCKET_NAME'],
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
}
)
Airbrake.configure do |config|
config.api_key = ENV['ERRBIT_API_KEY']
config.host = ENV['ERRBIT_HOST']
config.port = 80
config.secure = config.port == 443
end
use Airbrake::Sinatra
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment