Commit 50939f53 authored by Ismael Posada Trobo's avatar Ismael Posada Trobo
Browse files

DEV: Move Discourse app specific concern out of unicorn conf....

DEV: Move Discourse app specific concern out of unicorn conf. (https://github.com/discourse/discourse/commit/cadf5eafe6d0a6474bc20600a965e8f15b9f1761)
parent 0119c51d
...@@ -255,14 +255,4 @@ end ...@@ -255,14 +255,4 @@ end
after_fork do |server, worker| after_fork do |server, worker|
DiscourseEvent.trigger(:web_fork_started) DiscourseEvent.trigger(:web_fork_started)
Discourse.after_fork Discourse.after_fork
# warm up v8 after fork, that way we do not fork a v8 context
# it may cause issues if bg threads in a v8 isolate randomly stop
# working due to fork
begin
# Skip warmup in development mode - it makes boot take ~2s longer
PrettyText.cook("warm up **pretty text**") if !Rails.env.development?
rescue => e
Rails.logger.error("Failed to warm up pretty text: #{e}")
end
end end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment