Skip to content

Commit

Permalink
docs: about settings rack timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ghassanmas committed Oct 11, 2022
1 parent 1d1844c commit e7f557c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
SINATRA_ENV: staging
API_KEY: password
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
RACK_TIMEOUT_SERVICE_TIMEOUT: 20
services:
elasticsearch:
image: elasticsearch:7.8.0
Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ By default Sinatra runs on port `4567`. If you'd like to use a different port pa
$ ruby app.rb -p 5678
Rake timeout configuration should be set as env varaiable, the default value is 15 second. to set to 20 second:

.. code-block::
$ RACK_TIMEOUT_SERVICE_TIMEOUT=20 ruby app.rb -p 5678
Running Tests
-------------
Expand Down
1 change: 0 additions & 1 deletion config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ default_locale: <%= ENV['SERVICE_LANGUAGE'] || 'en-US' %>
manual_pagination_batch_size: <%= ENV['MANUAL_PAGINATION_BATCH_SIZE'] || 500 %>
thread_response_default_size: <%= ENV['THREAD_RESPONSE_DEFAULT_SIZE'] || 100 %>
thread_response_size_limit: <%= ENV['THREAD_RESPONSE_SIZE_LIMIT'] || 200 %>
service_timeout: 20

0 comments on commit e7f557c

Please sign in to comment.