1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00
الملفات
postal/config/puma.rb
2024-02-26 12:41:57 +00:00

13 أسطر
480 B
Ruby

# frozen_string_literal: true
require_relative "../lib/postal/config"
threads_count = Postal::Config.web_server.max_threads
threads threads_count, threads_count
bind_address = ENV.fetch("BIND_ADDRESS", Postal::Config.web_server.default_bind_address)
bind_port = ENV.fetch("PORT", Postal::Config.web_server.default_port)
bind "tcp://#{bind_address}:#{bind_port}"
environment Postal::Config.rails.environment || "development"
prune_bundler
quiet false