mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-05 06:26:21 +00:00
14 lines
318 B
Ruby
14 lines
318 B
Ruby
|
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
|
||
|
threads_count = Integer(ENV['MAX_THREADS'] || 5)
|
||
|
threads threads_count, threads_count
|
||
|
|
||
|
preload_app!
|
||
|
|
||
|
rackup DefaultRackup
|
||
|
port ENV['PORT'] || 3000
|
||
|
environment ENV['RACK_ENV'] || 'development'
|
||
|
|
||
|
on_worker_boot do
|
||
|
ActiveRecord::Base.establish_connection
|
||
|
end
|