diff --git a/README.md b/README.md index 291545e..0ab6080 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,17 @@ You have your Rails application deployed on the [Amazon Elastic Beanstalk](http: 9. Deploy the application to both environments (web and worker). +## Optional configuration +This gem is configurable in case your setup requires different settings than the defaults. + + ```Ruby + Rails.application.configure do + config.active_elastic_job.process_jobs = # defaults to ENV['PROCESS_ACTIVE_ELASTIC_JOBS'] == 'true' || false + config.active_elastic_job.aws_credentials = # defaults to Aws::InstanceProfileCredentials.new + config.active_elastic_job.secret_key_base = # defaults to Rails.application.secrets[:secret_key_base] + end + ``` + ## FAQ A summary of frequently asked questions: ### What are the advantages in comparison to popular alternatives like Resque, Sidekiq or DelayedJob? diff --git a/spec/integration/rails-app-5.0/config/environments/production.rb b/spec/integration/rails-app-5.0/config/environments/production.rb index 5c1b32e..16b22a3 100644 --- a/spec/integration/rails-app-5.0/config/environments/production.rb +++ b/spec/integration/rails-app-5.0/config/environments/production.rb @@ -76,4 +76,9 @@ # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false + + # Test gem's configuration + config.active_elastic_job.process_jobs = true + config.active_elastic_job.aws_credentials = Aws::Credentials.new(ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']) + config.active_elastic_job.secret_key_base = 's3krit' end