mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
8 lines
No EOL
251 B
Ruby
8 lines
No EOL
251 B
Ruby
if ENV['AWS_ACCESS_KEY_ID'] then
|
|
Aws.config.update({
|
|
region: ENV['AWS_REGION'],
|
|
credentials: Aws::Credentials.new(ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']),
|
|
})
|
|
|
|
S3_BUCKET = Aws::S3::Resource.new.bucket(ENV['S3_BUCKET'])
|
|
end |