also watch CSS in unicorn on dev

This commit is contained in:
Sam
2018-03-09 17:47:57 +11:00
parent 7c0e6b820e
commit 800760e353
2 changed files with 6 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ Discourse::Application.configure do
config.developer_emails = emails.split(",").map(&:downcase).map(&:strip)
end
if defined?(Rails::Server) || defined?(Puma)
if defined?(Rails::Server) || defined?(Puma) || defined?(Unicorn)
require 'stylesheet/watcher'
STDERR.puts "Starting CSS change watcher"
@watcher = Stylesheet::Watcher.watch