Commit 4f2495b
committed
feat: Optimize Heroku configuration with production best practices
- Add jemalloc buildpack for 20-40% memory reduction
- Configure WEB_CONCURRENCY=2 for Puma workers on basic dynos
- Set RAILS_MAX_THREADS=5 for optimal thread pool size
- Enable JEMALLOC_ENABLED flag for buildpack activation
- Remove postdeploy from main app (keep only for review apps)
- Migrations now run in release phase (Procfile) before new code goes live
Based on best practices from Mastodon, Chatwoot, and Bullet Train Rails apps.
Authored by: Aaron Lippold<lippold@gmail.com>1 parent 4a374db commit 4f2495b
1 file changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
26 | 41 | | |
27 | 42 | | |
28 | 43 | | |
| |||
31 | 46 | | |
32 | 47 | | |
33 | 48 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
| |||
0 commit comments