lib/spork/server.rb in spork-0.5.1 vs lib/spork/server.rb in spork-0.5.2
- old
+ new
@@ -111,19 +111,25 @@
private
def self.framework
@framework ||= Spork::AppFramework.detect_framework
end
+ def self.entry_point
+ bootstrapped? ? helper_file : framework.entry_point
+ end
+
def self.preload
Spork.exec_prefork do
unless bootstrapped?
stderr.puts "#{helper_file} has not been bootstrapped. Run spork --bootstrap to do so."
stderr.flush
if framework.bootstrap_required?
stderr.puts "I can't do anything for you by default for the framework your using: #{framework.short_name}.\nYou must bootstrap #{helper_file} to continue."
stderr.flush
return false
+ else
+ load(framework.entry_point)
end
end
framework.preload do
if bootstrapped?
\ No newline at end of file