Skip to content

Commit

Permalink
Puma (#1876)
Browse files Browse the repository at this point in the history
* Update puma config

* Update README.md
  • Loading branch information
biow0lf authored Dec 30, 2024
1 parent 7138c49 commit bbeb96f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Service container for running [pghero](https://github.com/ankane/pghero).
| `SECRET_KEY_BASE` | Rails secret | not set | not set |
| `WEB_CONCURRENCY` | Number of CPU | not set | not set |
| `RAILS_MAX_THREADS` | Rails max threads | `3` | as default |
| `RAILS_MIN_THREADS` | Rails min threads | `3` | as default |
| `DATABASE_URL` | Database configuration. Example: `postgres://user:password@localhost/database` | not set | not set |
| `PGHERO_USERNAME` | User name for auth. Always set! | not set | not set |
| `PGHERO_PASSWORD` | User password for auth. Always set! | not set | not set |
Expand Down
5 changes: 4 additions & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
port ENV.fetch("PORT", 3000)

# Allow puma to be restarted by `bin/rails restart` command.
# plugin :tmp_restart
plugin :tmp_restart

# Run the Solid Queue supervisor inside of Puma for single-server deployments
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]

# Specify the PID file. Defaults to tmp/pids/server.pid in development.
# In other environments, only set the PID file if requested.
Expand Down

0 comments on commit bbeb96f

Please sign in to comment.