Initial Rails test app

This commit is contained in:
Min Zeya Phyo
2026-01-15 12:26:30 +06:30
commit 1733430341
19 changed files with 418 additions and 0 deletions

13
config/puma.rb Normal file
View File

@@ -0,0 +1,13 @@
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
threads min_threads_count, max_threads_count
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
port ENV.fetch("PORT") { 3000 }
environment ENV.fetch("RAILS_ENV") { "production" }
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
plugin :tmp_restart