0

I'm got a Rails 4.2.5 application and I need to run 'rails server' on production, I tried some answers here:

rails server -e production

RAILS_ENV=production rails s

But I get this error:

missing region; use :region option or export region name to ENV['AWS_REGION'] (Aws::Errors::MissingRegionError)

Am I missing some configurations?

Community
  • 1
  • 1
Rikkin
  • 509
  • 1
  • 5
  • 20

1 Answers1

2

Seems you have some S3/AWS config for your production environment (e. g. for Paperclip) that needs to be set. You can use dotenv or rbenv-vars for setting ENV variables that are automatically loaded. Have a look at production.rb and see if you can find the config where this is needed.

Julia Will
  • 616
  • 3
  • 8