Skip to content

Commit

Permalink
Merge pull request #1909 from FarmBot/MAX_POOL_SIZE
Browse files Browse the repository at this point in the history
Set max pool size via ENV var
  • Loading branch information
RickCarlino committed Jul 31, 2020
2 parents a918612 + 9d488f8 commit 50d0b6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
worker: bundle exec rake jobs:work
rabbit_workers: bin/rails r lib/rabbit_workers.rb
web: bundle exec passenger start -p $PORT -e $RAILS_ENV --max-pool-size 2
web: bundle exec passenger start -p $PORT -e $RAILS_ENV --max-pool-size $MAX_POOL_SIZE
# This will perform a hard refresh on all connected browsers.
release: rails r "User.refresh_everyones_ui"
3 changes: 3 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
# found in API_HOST. Heroku users will not use the same value.
# Use a REAL, PUBLIC IP ADDRESS if you are controlling real bots.
MQTT_HOST=98.76.54.32
# Set the max pool size for Passenger.
# Only needed if using Heroku. FarmBot, Inc. uses Heroku. Self hosters do not.
MAX_POOL_SIZE=2
# If your server is on a domain (eg=my-own-farmbot.com), put it here.
# DONT USE `localhost`.
# DONT USE `127.0.0.1`.
Expand Down

0 comments on commit 50d0b6c

Please sign in to comment.