مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
17 أسطر
410 B
Ruby
ملف تنفيذي
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")}
|