FIX: start filesystem watcher when running under rails s
This commit is contained in:
parent
1716747810
commit
9f8388c2eb
|
@ -49,16 +49,17 @@ Discourse::Application.configure do
|
||||||
require 'rbtrace'
|
require 'rbtrace'
|
||||||
|
|
||||||
|
|
||||||
require 'stylesheet/watcher'
|
|
||||||
if defined? Puma
|
|
||||||
STDERR.puts "Starting CSS change watcher"
|
|
||||||
@watcher = Stylesheet::Watcher.watch
|
|
||||||
end
|
|
||||||
|
|
||||||
if emails = GlobalSetting.developer_emails
|
if emails = GlobalSetting.developer_emails
|
||||||
config.developer_emails = emails.split(",").map(&:downcase).map(&:strip)
|
config.developer_emails = emails.split(",").map(&:downcase).map(&:strip)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if defined? Rails::Server || defined? Puma
|
||||||
|
require 'stylesheet/watcher'
|
||||||
|
STDERR.puts "Starting CSS change watcher"
|
||||||
|
@watcher = Stylesheet::Watcher.watch
|
||||||
|
end
|
||||||
|
|
||||||
config.after_initialize do
|
config.after_initialize do
|
||||||
if ENV['BULLET']
|
if ENV['BULLET']
|
||||||
Bullet.enable = true
|
Bullet.enable = true
|
||||||
|
|
Loading…
Reference in New Issue