lib/adminix/setup/routes.rb in adminix-0.1.24 vs lib/adminix/setup/routes.rb in adminix-0.1.25

- old
+ new

@@ -83,10 +83,14 @@ if params[:t] && params[:id] id_is_valid = Services.verify_service_id(params[:t], params[:id]) secret_key = Services.get_secret_key(params[:t]) if id_is_valid && !secret_key.nil? Services.import_settings(secret_key, params[:id]) + Thread.start do + sleep(2) + Adminix::Service.instance.restart! + end render('complete') else render('error') end else @@ -99,10 +103,10 @@ def render(view_name, assigns={}) Views.send("#{view_name}_view", assigns) end set :bind, '0.0.0.0' - set :port, Adminix::Config.instance.setup_server_port + set :port, Adminix::Config::DEFAULT_SETUP_SERVER_PORT run! end end