Skip to content

Commit 0f0ac54

Browse files
committed
Merge branch 'staging' of https://github.com/FarmBot/Farmbot-Web-App into staging
2 parents 9ff9d77 + 7a2b141 commit 0f0ac54

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
worker: bundle exec rake jobs:work
22
rabbit_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.
55
release: rails r "User.refresh_everyones_ui" && rails db:migrate && (bundle exec rake hook:release_info || true)

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

example.env

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)