增加美国演示发布
parent
5cc93d4b3c
commit
04610062f8
|
@ -29,6 +29,7 @@
|
|||
private void InitializeComponent()
|
||||
{
|
||||
groupBox1 = new GroupBox();
|
||||
rb_USDemo = new RadioButton();
|
||||
rb_production = new RadioButton();
|
||||
rb_Verify = new RadioButton();
|
||||
rb_test = new RadioButton();
|
||||
|
@ -95,6 +96,7 @@
|
|||
//
|
||||
// groupBox1
|
||||
//
|
||||
groupBox1.Controls.Add(rb_USDemo);
|
||||
groupBox1.Controls.Add(rb_production);
|
||||
groupBox1.Controls.Add(rb_Verify);
|
||||
groupBox1.Controls.Add(rb_test);
|
||||
|
@ -107,6 +109,17 @@
|
|||
groupBox1.TabStop = false;
|
||||
groupBox1.Text = "环境(服务的操作,备份操作作用的主机)";
|
||||
//
|
||||
// rb_USDemo
|
||||
//
|
||||
rb_USDemo.AutoSize = true;
|
||||
rb_USDemo.Location = new Point(555, 48);
|
||||
rb_USDemo.Name = "rb_USDemo";
|
||||
rb_USDemo.Size = new Size(83, 24);
|
||||
rb_USDemo.TabIndex = 4;
|
||||
rb_USDemo.Text = "美国演示";
|
||||
rb_USDemo.UseVisualStyleBackColor = true;
|
||||
rb_USDemo.Click += rb_Env_CheckedChanged;
|
||||
//
|
||||
// rb_production
|
||||
//
|
||||
rb_production.AutoSize = true;
|
||||
|
@ -1040,5 +1053,6 @@
|
|||
private TabPage tabPage2;
|
||||
private TabPage tabPage5;
|
||||
private TabPage tabPage6;
|
||||
private RadioButton rb_USDemo;
|
||||
}
|
||||
}
|
|
@ -125,6 +125,15 @@ namespace PublishSite
|
|||
jObjectCofig = JObject.Parse(configJson);
|
||||
}
|
||||
|
||||
if (rb_USDemo.Checked)
|
||||
{
|
||||
EnvName = "美国演示";
|
||||
WinformLog($"当前操作环境切换为: 美国演示", Color.DarkRed);
|
||||
|
||||
var configJson = File.ReadAllText("appsettings.USDemo.json");
|
||||
|
||||
jObjectCofig = JObject.Parse(configJson);
|
||||
}
|
||||
|
||||
|
||||
#region 界面控件赋值
|
||||
|
@ -214,6 +223,11 @@ namespace PublishSite
|
|||
{
|
||||
path = "appsettings.Production.json";
|
||||
|
||||
}
|
||||
if (rb_USDemo.Checked)
|
||||
{
|
||||
path = "appsettings.USDemo.json";
|
||||
|
||||
}
|
||||
var configJson = File.ReadAllText(path);
|
||||
|
||||
|
@ -1046,7 +1060,7 @@ namespace PublishSite
|
|||
|
||||
archive.SaveTo(filePath, new WriterOptions(CompressionType.Deflate));
|
||||
}
|
||||
|
||||
|
||||
WinformLog("文件已成功压缩为 " + filePath);
|
||||
|
||||
});
|
||||
|
|
|
@ -1,4 +1,64 @@
|
|||
<root>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing"">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
|
|
|
@ -11,6 +11,15 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="appsettings.USDemo.json" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="appsettings.USDemo.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
</Content>
|
||||
<Content Include="appsettings.Production.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"DBPwd": "dev123456DEV",
|
||||
"BackPath": "D:\\Develop\\PublishSite\\发布备份",
|
||||
"VuePublishFolder": "D:\\Develop\\PublishSite\\IRaCIS.Vue.Web\\dist",
|
||||
"ConnectionStrings": "Server=.;Database=IRaCIS;Trusted_Connection=True;TrustServerCertificate=true"
|
||||
"ConnectionStrings": "Server=.;Database=IRaCIS_New_Tet;Trusted_Connection=True;TrustServerCertificate=true"
|
||||
},
|
||||
"Credential": {
|
||||
"Host": "123.56.94.154",
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"BackUp": {
|
||||
"DataBaseName": "IRaCIS_Demo_US",
|
||||
"DBUser": "sa",
|
||||
"DBPwd": "dev123456DEV",
|
||||
"BackPath": "C:\\IRaCIS_Publish\\备份",
|
||||
"VuePublishFolder": "C:\\IRaCIS_Publish\\PublishSite\\IRaCIS.Vue.Web\\dist",
|
||||
"ConnectionStrings": "Server=.;Database=IRaCIS_Demo_US;Trusted_Connection=True;TrustServerCertificate=true"
|
||||
},
|
||||
"Credential": {
|
||||
"Host": "47.90.161.85",
|
||||
"UserName": "Administrator",
|
||||
"Password": "SHzyyl2021"
|
||||
},
|
||||
"DefaultService": {
|
||||
"ServiceName": "USDemo.NetCore.IRaCIS.Api",
|
||||
"ServiceDisplayName": "USDemo_IRaCIS.Core.API",
|
||||
"ServicePort": "7000",
|
||||
"BinPath": "C:\\IRaCIS_Publish\\PublishSite\\IRaCIS.NetCore.API\\IRaCIS.Core.API.exe",
|
||||
"Env": "USDemo"
|
||||
},
|
||||
|
||||
}
|
Loading…
Reference in New Issue