We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c3f412 commit 2a60e06Copy full SHA for 2a60e06
1 file changed
chef-server-api/lib/chef-server-api.rb
@@ -62,12 +62,6 @@ def self.activate
62
63
64
Thread.new do
65
- until EM.reactor_running?
66
- sleep 1
67
- end
68
-
69
- Chef::Nanite.in_event { Chef::Log.info("Nanite is ready") }
70
71
unless Merb::Config.environment == "test"
72
# create the couch design docs for nodes, roles, and databags
73
Chef::CouchDB.new.create_id_map
@@ -100,6 +94,12 @@ def self.activate
100
94
# Generate the Web UI Key
101
95
Chef::Certificate.gen_validation_key(Chef::Config[:web_ui_client_name], Chef::Config[:web_ui_key])
102
96
end
97
+
98
+ until EM.reactor_running?
99
+ sleep 1
+ end
+ Chef::Nanite.in_event { Chef::Log.info("Nanite is ready") }
103
104
105
0 commit comments