From 45f5c3275cb19e1bc198ef3e1d5a445b61554f0d Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 30 Nov 2017 17:28:35 +0800 Subject: [PATCH] update for site construction --- app/controllers/site_panel_api_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/site_panel_api_controller.rb b/app/controllers/site_panel_api_controller.rb index 04717f8..64aecca 100644 --- a/app/controllers/site_panel_api_controller.rb +++ b/app/controllers/site_panel_api_controller.rb @@ -15,7 +15,7 @@ class SitePanelApiController < ApplicationController list = SiteConstruct.where(:server_type => type, :constructed => false) string = "" list.each do |entry| - string = string + "#{entry.server_type},#{entry.site_name},#{entry.domain_name},#{entry.port},#{entry.db_name},#{entry.path}\n" + string = string + "#{entry.server_type},#{entry.domain_name},#{entry.port},#{entry.db_name},#{entry.path},#{entry.site_name}\n" end render :text => string end