bin/ruby-station in ruby-station-0.0.4 vs bin/ruby-station in ruby-station-0.1.0
- old
+ new
@@ -4,16 +4,24 @@
require 'rubygems'
require 'ramaze'
$LOAD_PATH.unshift __DIR__("../")
-require 'util/gem-manager.rb'
+require 'util/gem_manager.rb'
require 'config.rb'
-Conf.parse_opt
+if defined?(TESTS_DIR)
+ Conf.set_home(TESTS_DIR/"data/conf_dir/")
+else
+ Conf.parse_opt
+end
Conf.init
+require 'util/servant.rb'
require 'controller/init'
require 'model/init'
+if Conf.debug
+ Ramaze::Log.info "Starting Ramaze with dev mode"
+end
Ramaze.start :port => Conf.server_port,
:root => __DIR__("../"),
- :mode => :live
+ :mode => (Conf.debug ? :dev : :live)