1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00
الملفات
postal/script/update_process_concurrency.rb

17 أسطر
410 B
Ruby
ملف تنفيذي

#!/usr/bin/env ruby
require File.expand_path('../../lib/postal/config', __FILE__)
worker_quantity = Postal.config.workers&.quantity || 1
hash = {
'processes' => {
'worker' => {
'quantity' => worker_quantity
},
'fast' => {
'quantity' => Postal.config.fast_server.enabled? ? 1 : 0
}
}
}.to_yaml
File.open(Postal.app_root.join('Procfile.local'), 'w') { |f| f.write(hash + "\n")}