Skip to content

Commit

Permalink
Set pool size via MAX_POOL_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCarlino committed Jul 31, 2020
1 parent c8909c7 commit 9d488f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
@@ -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 12
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
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 9d488f8

Please sign in to comment.