File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11worker : bundle exec rake jobs:work
22rabbit_workers : bin/rails r lib/rabbit_workers.rb
3- web : bundle exec passenger start -p $PORT -e $RAILS_ENV --max-pool-size $MAX_POOL_SIZE
3+ web : bundle exec passenger start -p $PORT -e $RAILS_ENV --max-pool-size ${ MAX_POOL_SIZE:- 1} --max-requests ${MAX_REQUESTS :- 1000}
44# This will perform a hard refresh on all connected browsers.
55release : rails r " User.refresh_everyones_ui" && rails db:migrate && (bundle exec rake hook:release_info || true)
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ services:
5050 build :
5151 context : " ."
5252 dockerfile : docker_configs/api.Dockerfile
53- command : bash -c "rm -f tmp/pids/server.pid && bundle exec passenger start"
53+ command : bash -c "rm -f tmp/pids/server.pid && bundle exec passenger start --max-pool-size ${MAX_POOL_SIZE:-1} --max-requests ${MAX_REQUESTS:-1000} "
5454 ports : ["${API_PORT}:${API_PORT}"]
5555
5656 mqtt :
Original file line number Diff line number Diff line change @@ -142,7 +142,12 @@ CODECOV_TOKEN=
142142
143143# Set the max pool size for Passenger. (Only needed if using Heroku)
144144# FarmBot Inc uses Heroku. Self hosters do not.
145- MAX_POOL_SIZE = 2
145+ MAX_POOL_SIZE = 1
146+
147+ # Set the max number of requests until restart for Passenger.
148+ # (Only needed if using Heroku)
149+ # FarmBot Inc uses Heroku. Self hosters do not.
150+ MAX_REQUESTS = 1000
146151
147152# This is set by Heroku and used by the frontend to show the current version.
148153# Most self hosting users will want to delete this.
You can’t perform that action at this time.
0 commit comments