Skip to content

Commit d40773b

Browse files
committed
You should require chef first!
1 parent e7b29ba commit d40773b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

chef-server/lib/init.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
# limitations under the License.
1717
#
1818

19+
require 'chef'
20+
1921
Merb.root = Chef::Config[:merb_root]
2022

2123
#
@@ -138,6 +140,7 @@
138140
# ==== Set up your basic configuration
139141
#
140142
Merb::Config.use do |c|
143+
c[:fork_for_class_load] = false
141144
# Sets up a custom session id key, if you want to piggyback sessions of other applications
142145
# with the cookie session store. If not specified, defaults to '_session_id'.
143146
c[:session_id_key] = '_chef_server_session_id'
@@ -207,3 +210,4 @@
207210
match('/').to(:controller => 'nodes', :action =>'index').name(:top)
208211
end
209212

213+
puts "I have loaded my app?"

0 commit comments

Comments
 (0)