Summary of the invention
The embodiment of the invention provides a kind of configuration method of project environment and device, realize to project varying environment into
Row difference configuration, to effectively improve project development efficiency.
At least one exploitation environment templates, at least one test environment are stored in advance in a kind of configuration method of project environment
Environment templates in template and at least one line, further includes:
At least one exploitation environment templates described in storage, at least one described test environment templates and described at least one
On a line in environment templates, the determining target developing environment templates to match with project to be built, target detection environment templates with
And environment templates on score;
When receive develop the request of environment for the project configuration to be built when, read the target developing environment mould
Plate is that the target developing environment templates define development parameters by visualization interface, generates target developing environment;
When receive test the request of environment for the project configuration to be built when, read the target detection environment mould
Plate is that the target detection environment templates define test parameter by visualization interface, generates target detection environment;
When receiving as the request of environment on the project configuration line to be built, environment mould on the score is read
Plate is that environment templates define on-line parameters on the score by visualization interface, generates environment on score.
Preferably,
It is described be stored in advance at least one exploitation environment templates, at least one test environment templates and at least one line on ring
Border template, comprising: respectively by environment at least one exploitation environment templates, at least one test environment templates and at least one line
Template is stored to different nodes;
Target developing environment templates, target detection environment templates and the target that the determination and project to be built match
Environment templates on line, comprising: for project to be built be respectively configured and call be stored with target developing environment templates first node,
It is stored with the second node of target detection environment templates and is stored with the third node of environment templates on score.
Preferably, the above method further comprises:
For exploitation environment templates described in each, execute:
The exploitation environment templates are cut at least two exploitation environment subtemplates, and develop ring for described at least two
Border subtemplate is stored into different exploitation child nodes;
According to the sequence between at least two exploitations environment subtemplate, the first of the different exploitation child nodes is determined
Calling sequence;
It is described for project configuration to be built and to call and be stored with the first nodes of target developing environment templates, comprising: for
At least two target developing child node of project configuration is constructed, and according to the first calling sequence, calls at least two mesh
Mark exploitation child node, wherein the exploitation environment subtemplate stored in at least two target developings child node forms a mesh
Mark exploitation environment templates.
Preferably, the above method further comprises:
For test environment templates described in each, execute:
The test environment templates are cut at least two test environment subtemplates, and by least two test wrapper
Border subtemplate is stored into different test child nodes;
According to the sequence between at least two tests environment subtemplate, the second of the different test child nodes is determined
Calling sequence;
It is described for project configuration to be built and to call and be stored with the second nodes of target detection environment templates, comprising: for
At least two target detection child node of project configuration is constructed, and according to the second calling sequence, calls at least two mesh
Mapping swab node, wherein the test environment subtemplate stored in at least two target detections child node forms a mesh
Mapping tries environment templates.
Preferably, the above method further comprises:
For environment templates on line described in each, execute:
Environment templates on the line are cut into environment subtemplate at least two lines, and by ring at least two line
Border subtemplate is stored into child node on different lines;
According to the sequence between environment subtemplate at least two line, the third of child node on the different lines is determined
Calling sequence;
It is described for project configuration to be built and to call and be stored with the third nodes of environment templates on score, comprising: for
Child node at least two score of project configuration is constructed, and according to the third calling sequence, calls at least two mesh
Child node on graticule, wherein environment subtemplate forms a mesh on the line stored in child node at least two score
Environment templates on graticule.
Preferably, the above method further comprises:
For exploitation environment templates definition exploitation type of database, exploitation data base management system and exploitation described in each
Distributed application program coordination service;
The weight of the exploitation type of database, the exploitation weight of data base management system and described are defined respectively
The weight of development DDB application Program Coordination service;
And the weight of the exploitation type of database, the weight and the exploitation point of the exploitation data base management system
The weight of cloth application program coordination service meets following weight distribution formula:
Weight distribution formula:
K1+K2+K3=1
Wherein, K1Characterize the weight of the exploitation type of database;K2Characterize the power of the exploitation data base management system
Weight;K3Characterize the weight of the development DDB application Program Coordination service;
When not finding the target developing environment templates to match with the project to be built, calculated using following first public
Formula calculates the matching value of each exploitation environment templates;
First calculation formula:
DKi=K1SKi+K2GKi+K3FKi
Wherein, the DKiThe matching value of i-th of exploitation environment templates of characterization;The institute that environment templates define is developed when i-th
It states exploitation type of database and meets the project to be built, then SKi=1;The exploitation that environment templates define is developed when i-th
Type of database is unsatisfactory for the project to be built, then SKi=0;The exploitation data that environment templates define are developed when i-th
Base management system meets the project to be built, then GKi=1;The exploitation database that environment templates define is developed when i-th
Management system is unsatisfactory for the project to be built, then GKi=0;It is distributed that the exploitation that environment templates define is developed when i-th
Application program coordination service meets the project to be built, then FKi=1;The exploitation that environment templates define is developed when i-th
Distributed application program coordination service is unsatisfactory for the project to be built, then FKi=0;
The corresponding exploitation environment templates of maximum matching value are selected, are the close exploitation environment templates of the project to be built;
The close exploitation environment templates are modified by visualization interface, and are modified described by visualization interface
Close exploitation environment templates define development parameters, generate target developing environment.
Preferably, the above method further comprises:
For test environment template definition test database type, test data base management system and test described in each
Distributed application program coordination service;
The weight of the test database type, the weight of the test data base management system and described are defined respectively
The weight of test distributed application program coordination service;
And the weight of the test database type, the weight of the test data base management system and the test point
The weight of cloth application program coordination service meets following weight distribution formula:
Weight distribution formula:
C1+C2+C3=1
Wherein, C1Characterize the weight of the test database type;C2Characterize the power of the test data base management system
Weight;C3Characterize the weight of the test distributed application program coordination service;
When not finding the target detection environment templates to match with the project to be built, calculated using following second public
Formula calculates the matching value of each test environment templates;
Second calculation formula:
DCi=C1SCi+C2GCi+C3FCi
Wherein, the DCiThe matching value of i-th of test environment templates of characterization;The institute of environment template definition is tested when i-th
It states test database type and meets the project to be built, then SCi=1;The test of environment template definition is tested when i-th
Type of database is unsatisfactory for the project to be built, then SCi=0;The test data of environment template definition is tested when i-th
Base management system meets the project to be built, then GCi=1;The test database of environment template definition is tested when i-th
Management system is unsatisfactory for the project to be built, then GCi=0;The test distributed of environment template definition is tested when i-th
Application program coordination service meets the project to be built, then FCi=1;The test of environment template definition is tested when i-th
Distributed application program coordination service is unsatisfactory for the project to be built, then FCi=0;
The corresponding test environment templates of maximum matching value are selected, are the close test environment templates of the project to be built;
The close test environment templates are modified by visualization interface, and are modified described by visualization interface
Close test environment template definition test parameter generates target detection environment.
Preferably, the above method further comprises:
For on data base management system on type of database in environment templates definition wires on line described in each, line and line
Distributed application program coordination service;
The weight of type of database on the line is defined respectively, the weight of data base management system and described on the line
The weight of distributed application program coordination service on line;
And the weight of type of database on the line, on the line on the weight of data base management system and the line point
The weight of cloth application program coordination service meets following weight distribution formula:
Weight distribution formula:
X1+X2+X3=1
Wherein, X1Characterize the weight of type of database on the line;X2Characterize the power of data base management system on the line
Weight;X3Characterize the weight of distributed application program coordination service on the line;
When not finding environment templates on the score to match with the project to be built, calculated using following thirds public
Formula calculates the matching value of environment templates on each described line;
Third calculation formula:
DXi=X1SXi+X2GXi+X3FXi
Wherein, the DXiCharacterize the matching value of environment templates on i-th of line;When the institute that environment templates define on i-th of line
It states type of database on line and meets the project to be built, then SXi=1;When on the line that environment templates define on i-th of line
Type of database is unsatisfactory for the project to be built, then SXi=0;When data on the line that environment templates define on i-th of line
Base management system meets the project to be built, then GXi=1;When database on the line that environment templates define on i-th of line
Management system is unsatisfactory for the project to be built, then GXi=0;When distributed on the line that environment templates define on i-th of line
Application program coordination service meets the project to be built, then FXi=1;When on the line that environment templates define on i-th of line
Distributed application program coordination service is unsatisfactory for the project to be built, then FXi=0;
Environment templates on the corresponding line of maximum matching value are selected, are environment templates on the phase near line of the project to be built;
Environment templates on the phase near line are modified by visualization interface, and are modified described by visualization interface
Environment templates define on-line parameters on phase near line, generate environment on score.
A kind of configuration device of project environment is applied to cloud server, comprising: determination unit and environment generation unit,
Wherein,
The determination unit, for being stored in the cloud server at least one exploitation environment templates, at least one
It tests on environment templates and at least one line in environment templates, the determining target developing environment mould to match with project to be built
Environment templates on plate, target detection environment templates and score;
The environment generation unit, for when receive develop the request of environment for the project configuration to be built when, read
The target developing environment templates for taking the determination unit to determine, it is fixed for the target developing environment templates by visualization interface
Adopted development parameters generate target developing environment;When receive test the request of environment for the project configuration to be built when, read
The target detection environment templates that the determination unit is determined are target detection environment templates definition by visualization interface
Test parameter generates target detection environment;When receiving as the request of environment on the project configuration line to be built, institute is read
Environment templates on the score that determination unit is determined are stated, are environment templates definition wires on the score by visualization interface
Upper parameter generates environment on score.
Preferably, the determination unit is stored with target developing environment for being respectively configured and calling for project to be built
The first node of template, the second node for being stored with target detection environment templates and it is stored with of environment templates on score
Three nodes.
Preferably, above-mentioned apparatus further comprises: calling sequential build unit, wherein
Sequential build unit is called, at least two exploitation environment for being cut into according to each exploitation environment templates
Sequence between template determines the first calling sequence for being stored with each exploitation child node of the exploitation environment subtemplate;According to
Sequence between at least two test environment subtemplates that each test environment templates is cut into, determination are stored with the test wrapper
The second calling sequence of each test child node of border subtemplate;At least two be cut into according to environment templates on each line
Sequence on line between environment subtemplate determines that the third for being stored with child node on each line of environment subtemplate on the line is called
Sequentially;
The determination unit, for being at least two target developing child node of project configuration to be built, and according to the tune
The the first calling sequence determined with sequential build unit, calls at least two target developings child node, wherein it is described extremely
The exploitation environment subtemplate stored in few two target developing child nodes forms a target developing environment templates;For item to be built
Mesh configures at least two target detection child nodes, and the second calling sequence determined according to the calling sequential build unit,
Call at least two target detections child node, wherein the test wrapper stored in at least two target detections child node
Border subtemplate forms a target detection environment templates;For child node at least two score of project configuration to be built, and root
The third calling sequence determined according to the calling sequential build unit, calls child node at least two score,
In, environment subtemplate forms environment templates on a score on the line that stores in child node at least two score.
Preferably, above-mentioned apparatus further comprises: definition unit and matching value computing unit, wherein
The definition unit, for developing type of database, exploitation data for each described exploitation environment templates definition
Base management system and development DDB application Program Coordination service;Weight, the institute of the exploitation type of database are defined respectively
State the weight of exploitation data base management system and the weight of the development DDB application Program Coordination service;And the exploitation
The weight of type of database, the weight of the exploitation data base management system and development DDB application Program Coordination clothes
The weight of business meets following weight distribution formula:
Weight distribution formula:
K1+K2+K3=1
Wherein, K1Characterize the weight of the exploitation type of database;K2Characterize the power of the exploitation data base management system
Weight;K3Characterize the weight of the development DDB application Program Coordination service;
For test environment template definition test database type, test data base management system and test described in each
Distributed application program coordination service;Weight, the test database management system of the test database type are defined respectively
The weight of system and the weight of the test distributed application program coordination service;And the weight of the test database type,
The weight of the test data base management system and the weight of the test distributed application program coordination service, meet following
Weight distribution formula:
Weight distribution formula:
C1+C2+C3=1
Wherein, C1Characterize the weight of the test database type;C2Characterize the power of the test data base management system
Weight;C3Characterize the weight of the test distributed application program coordination service;
For on data base management system on type of database in environment templates definition wires on line described in each, line and line
Distributed application program coordination service;The weight of type of database on the line, data base administration system on the line are defined respectively
The weight of distributed application program coordination service in the weight of system and the line;And the weight of type of database on the line,
On the line on the weight of data base management system and the line distributed application program coordination service weight, meet following
Weight distribution formula:
Weight distribution formula:
X1+X2+X3=1
Wherein, X1Characterize the weight of type of database on the line;X2Characterize the power of data base management system on the line
Weight;X3Characterize the weight of distributed application program coordination service on the line;
The matching value computing unit, for the target developing environment mould to match with the project to be built ought not found
When plate, using following first calculation formula, the matching value of each exploitation environment templates is calculated;
First calculation formula:
DKi=K1SKi+K2GKi+K3FKi
Wherein, the DKiThe matching value of i-th of exploitation environment templates of characterization;When the definition unit is i-th of exploitation ring
The exploitation type of database of border template definition meets the project to be built, then SKi=1;When the definition unit is i-th
The exploitation type of database that a exploitation environment templates define is unsatisfactory for the project to be built, then SKi=0;When the definition
Unit is that the exploitation data base management system that i-th of exploitation environment templates defines meets the project to be built, then GKi=
1;When the definition unit is described in the exploitation data base management system that i-th of exploitation environment templates defines is unsatisfactory for structure
Project is built, then GKi=0;When the definition unit is the development DDB application program that i-th of exploitation environment templates defines
Coordination service meets the project to be built, then FKi=1;When the definition unit develops the institute that environment templates define for i-th
It states development DDB application Program Coordination service and is unsatisfactory for the project to be built, then FKi=0;
When not finding the target detection environment templates to match with the project to be built, calculated using following second public
Formula calculates the matching value of each test environment templates;
Second calculation formula:
DCi=C1SCi+C2GCi+C3FCi
Wherein, the DCiThe matching value of i-th of test environment templates of characterization;When the definition unit is i-th of test wrapper
The test database type that border template definition goes out meets the project to be built, then SCi=1;When the definition unit is the
The test database type that i test environment template definition goes out is unsatisfactory for the project to be built, then SCi=0;When described
Definition unit is that the test data base management system that i-th of test environment template definition goes out meets the project to be built,
Then GCi=1;When the definition unit is that the test data base management system that i-th of test environment template definition goes out is unsatisfactory for
The project to be built, then GCi=0;When the definition unit is the test distribution that i-th of test environment template definition goes out
Formula application program coordination service meets the project to be built, then FCi=1;When the definition unit is i-th of test environment mould
The test distributed application program coordination service that plate defines is unsatisfactory for the project to be built, then FCi=0;
When not finding environment templates on the score to match with the project to be built, calculated using following thirds public
Formula calculates the matching value of environment templates on each described line;
Third calculation formula:
DXi=X1SXi+X2GXi+X3FXi
Wherein, the DXiCharacterize the matching value of environment templates on i-th of line;When the definition unit is ring on i-th of line
Type of database meets the project to be built on the line of border template definition, then SXi=1;When the definition unit is i-th
Type of database is unsatisfactory for the project to be built on the line that environment templates define on a line, then SXi=0;When the definition
Data base management system meets the project to be built on the line that unit defines for environment templates on i-th of line, then GXi=
1;When the definition unit be on environment templates define on i-th line the line data base management system be unsatisfactory for it is described to structure
Project is built, then GXi=0;When distributed application program on the line that the definition unit defines for environment templates on i-th of line
Coordination service meets the project to be built, then FXi=1;When the institute that the definition unit defines for environment templates on i-th of line
It states distributed application program coordination service on line and is unsatisfactory for the project to be built, then FXi=0;
The environment generation unit is further used for selecting the calculated maximum matching value pair of the matching value computing unit
The exploitation environment templates answered are the close exploitation environment templates of the project to be built;The phase is modified by visualization interface
Nearly exploitation environment templates, and be that the modified close exploitation environment templates define development parameters by visualization interface, it is raw
At target developing environment;
The corresponding test environment templates of the calculated maximum matching value of the matching value computing unit are selected, to be described to structure
Build the close test environment templates of project;The close test environment templates are modified by visualization interface, and pass through visualization
Interface is the modified close test environment template definition test parameter, generates target detection environment;
Environment templates on the corresponding line of the calculated maximum matching value of the matching value computing unit are selected, to be described to structure
Build environment templates on the phase near line of project;Environment templates on the phase near line are modified by visualization interface, and pass through visualization
Interface is that environment templates define on-line parameters on the modified phase near line, generates environment on score.
The embodiment of the invention provides a kind of configuration method of project environment and devices, are opened by the way that at least one is stored in advance
Environment templates on hair environment templates, at least one test environment templates and at least one line;At least one is opened described in the storage
Send out on environment templates, at least one described test environment templates and at least one described line in environment templates, it is determining with it is to be built
Environment templates on target developing environment templates, target detection environment templates and the score that project matches;When receive for
When the request of the project configuration exploitation environment to be built, the target developing environment templates are read, are by visualization interface
The target developing environment templates define development parameters, generate target developing environment;Match when receiving for the project to be built
When setting the request of test environment, the target detection environment templates are read, are the target detection environment by visualization interface
Template definition test parameter generates target detection environment;When receiving as the request of environment on the project configuration line to be built
When, environment templates on the score are read, are that environment templates define on-line parameters on the score by visualization interface,
Environment on score is generated, realizes and difference configuration is carried out to project varying environment, to effectively improve project development effect
Rate.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, this method may include following the embodiment of the invention provides a kind of configuration method of project environment
Step:
Step 101: at least one exploitation environment templates, at least one test environment templates and at least one line is stored in advance
Upper environment templates;
Step 102: at least one exploitation environment templates described in storage, at least one described test environment templates and institute
It states at least one line in environment templates, determining target developing environment templates, the target detection ring to match with project to be built
Environment templates in border template and score;When receive develop the request of environment for the project configuration to be built when, execute
Step 103;When receive test the request of environment for the project configuration to be built when, execute step 104;When receiving as institute
When stating the request of environment on project configuration line to be built, step 105 is executed;
Step 103: reading the target developing environment templates, be the target developing environment templates by visualization interface
Development parameters are defined, generate target developing environment, and terminate current process;
Step 104: reading the target detection environment templates, be the target detection environment templates by visualization interface
Test parameter is defined, generates target detection environment, and terminate current process;
Step 105: reading environment templates on the score, be environment templates on the score by visualization interface
On-line parameters are defined, environment on score is generated.
Wherein, project to be built is usually and is first developed in exploitation environment, then completes test in test environment,
It realizes in environment on final online and is run on line.
In the embodiment shown in fig. 1, by the way that at least one exploitation environment templates, at least one test environment are stored in advance
Environment templates in template and at least one line;At least one exploitation environment templates described in storage, at least one described test
On environment templates and at least one described line in environment templates, the determining target developing environment mould to match with project to be built
Environment templates on plate, target detection environment templates and score;Environment is developed when receiving for the project configuration to be built
Request when, read the target developing environment templates, by visualization interface be the target developing environment templates definition open
Parameter is sent out, target developing environment is generated;When receive test the request of environment for the project configuration to be built when, described in reading
Target detection environment templates are that the target detection environment templates define test parameter by visualization interface, generate target and survey
Test ring border;When receiving as the request of environment on the project configuration line to be built, environment templates on the score are read,
It is that environment templates define on-line parameters on the score by visualization interface, generates environment on score, realize to item
Mesh varying environment carries out difference configuration, to effectively improve project development efficiency.
In an embodiment of the invention, in order to realize split hair environment templates, test environment templates and line on environment mould
The separate management of plate, at the same can enable develop environment templates, test environment templates and line on environment templates run simultaneously, on
State step 101 specific embodiment include: respectively by least one develop environment templates, at least one test environment templates and
Environment templates are stored to different nodes at least one line;Then the specific embodiment of step 102 includes: for project to be built
The second section for being respectively configured and calling the first node for being stored with target developing environment templates, be stored with target detection environment templates
Point and the third node for being stored with environment templates on score.
In an embodiment of the invention, in order to realize that split hair ring border carries out block management, in project in exploitation environment
In operational process when something goes wrong, it can be checked with piecemeal, to improve investigation efficiency.The above method further comprises: being directed to
Each described exploitation environment templates executes: the exploitation environment templates is cut at least two exploitation environment subtemplates, and
By at least two exploitations environment subtemplate storage into different exploitation child nodes;According at least two exploitations environment
Sequence between subtemplate determines the first calling sequence of the different exploitation child nodes;It is described for project configuration to be built simultaneously
Call the first node for being stored with target developing environment templates, comprising: at least two target developing of project configuration to be built
Node, and according to the first calling sequence, call at least two target developings child node, wherein described at least two
The exploitation environment subtemplate stored in target developing child node forms a target developing environment templates.
In an embodiment of the invention, block management is carried out to test environment in order to realize, in project in test environment
In operational process when something goes wrong, it can be checked with piecemeal, to improve investigation efficiency.The above method further comprises: being directed to
Each described test environment templates executes: the test environment templates is cut at least two test environment subtemplates, and
By at least two tests environment subtemplate storage into different test child nodes;According at least two tests environment
Sequence between subtemplate determines the second calling sequence of the different test child nodes;It is described for project configuration to be built simultaneously
Call the second node for being stored with target detection environment templates, comprising: at least two target detection of project configuration to be built
Node, and according to the second calling sequence, call at least two target detections child node, wherein described at least two
The test environment subtemplate stored in target detection child node forms a target detection environment templates.
In an embodiment of the invention, block management is carried out to environment on line in order to realize, in project environment on line
In operational process when something goes wrong, it can be checked with piecemeal, to improve investigation efficiency.The above method further comprises: being directed to
Environment templates on each described line execute: environment templates on the line are cut into environment subtemplate at least two lines, and
By environment subtemplate storage at least two line into child node on different lines;According to environment at least two line
Sequence between subtemplate determines the third calling sequence of child node on the different lines;It is described for project configuration to be built simultaneously
Call the third node for being stored with environment templates on score, comprising: for son at least two score of project configuration to be built
Node, and according to the third calling sequence, call child node at least two score, wherein described at least two
Environment subtemplate forms environment templates on a score on the line stored in child node on score.
In an embodiment of the invention, in order to being found and the exploitation environment of project is immediate similar opens for project
Hair ring border, by modifying similar exploitation environment, exploitation environment needed for becoming project substantially reduces and develops ring for project build
The duration in border.The above method further comprises: for exploitation environment templates definition exploitation type of database, exploitation number described in each
According to base management system and development DDB application Program Coordination service;Define respectively it is described exploitation type of database weight,
The weight of the exploitation data base management system and the weight of the development DDB application Program Coordination service;And it described opens
Send out the weight of type of database, the weight of the exploitation data base management system and the development DDB application Program Coordination
The weight of service meets following weight distribution formula:
Weight distribution formula:
K1+K2+K3=1
Wherein, K1Characterize the weight of the exploitation type of database;K2Characterize the power of the exploitation data base management system
Weight;K3Characterize the weight of the development DDB application Program Coordination service;
When not finding the target developing environment templates to match with the project to be built, calculated using following first public
Formula calculates the matching value of each exploitation environment templates;
First calculation formula:
DKi=K1SKi+K2GKi+K3FKi
Wherein, the DKiThe matching value of i-th of exploitation environment templates of characterization;The institute that environment templates define is developed when i-th
It states exploitation type of database and meets the project to be built, then SKi=1;The exploitation that environment templates define is developed when i-th
Type of database is unsatisfactory for the project to be built, then SKi=0;The exploitation data that environment templates define are developed when i-th
Base management system meets the project to be built, then GKi=1;The exploitation database that environment templates define is developed when i-th
Management system is unsatisfactory for the project to be built, then GKi=0;It is distributed that the exploitation that environment templates define is developed when i-th
Application program coordination service meets the project to be built, then FKi=1;The exploitation that environment templates define is developed when i-th
Distributed application program coordination service is unsatisfactory for the project to be built, then FKi=0;
The corresponding exploitation environment templates of maximum matching value are selected, are the close exploitation environment templates of the project to be built;
The close exploitation environment templates are modified by visualization interface, and are the modified close exploitation by visualization interface
Environment templates define development parameters, generate target developing environment.
In an embodiment of the invention, in order to being found and the immediate similar survey of the test environment of project for project
Test ring border, by modifying similar test environment, test environment needed for becoming project is substantially reduced as project build test wrapper
The duration in border.The above method further comprises: for test environment template definition test database type, test number described in each
According to base management system and test distributed application program coordination service;Define respectively the test database type weight,
The weight of the test data base management system and the weight of the test distributed application program coordination service;And the survey
The weight, the weight of the test data base management system and the test distributed application program for trying type of database are coordinated
The weight of service meets following weight distribution formula:
Weight distribution formula:
C1+C2+C3=1
Wherein, C1Characterize the weight of the test database type;C2Characterize the power of the test data base management system
Weight;C3Characterize the weight of the test distributed application program coordination service;
When not finding the target detection environment templates to match with the project to be built, calculated using following second public
Formula calculates the matching value of each test environment templates;
Second calculation formula:
DCi=C1SCi+C2GCi+C3FCi
Wherein, the DCiThe matching value of i-th of test environment templates of characterization;The institute of environment template definition is tested when i-th
It states test database type and meets the project to be built, then SCi=1;The test of environment template definition is tested when i-th
Type of database is unsatisfactory for the project to be built, then SCi=0;The test data of environment template definition is tested when i-th
Base management system meets the project to be built, then GCi=1;The test database of environment template definition is tested when i-th
Management system is unsatisfactory for the project to be built, then GCi=0;The test distributed of environment template definition is tested when i-th
Application program coordination service meets the project to be built, then FCi=1;The test of environment template definition is tested when i-th
Distributed application program coordination service is unsatisfactory for the project to be built, then FCi=0;
The corresponding test environment templates of maximum matching value are selected, are the close test environment templates of the project to be built;
The close test environment templates are modified by visualization interface, and are the modified close test by visualization interface
Environment templates define test parameter, generate target detection environment.
In an embodiment of the invention, in order to finding the immediate phase liny of environment on the line with project for project
Upper environment, by environment on modification phase liny, environment on line needed for becoming project is substantially reduced as ring on project build line
The duration in border.The above method further comprises: for number on type of database in environment templates definition wires on line described in each, line
According to distributed application program coordination service on base management system and line;Define respectively the weight of type of database on the line,
On the line on the weight of data base management system and the line distributed application program coordination service weight;And the line
Distributed application program is coordinated on the weight of data base management system and the line in the weight of upper type of database, the line
The weight of service meets following weight distribution formula:
Weight distribution formula:
X1+X2+X3=1
Wherein, X1Characterize the weight of type of database on the line;X2Characterize the power of data base management system on the line
Weight;X3Characterize the weight of distributed application program coordination service on the line;
When not finding environment templates on the score to match with the project to be built, calculated using following thirds public
Formula calculates the matching value of environment templates on each described line;
Third calculation formula:
DXi=X1SXi+X2GXi+X3FXi
Wherein, the DXiCharacterize the matching value of environment templates on i-th of line;When the institute that environment templates define on i-th of line
It states type of database on line and meets the project to be built, then SXi=1;When on the line that environment templates define on i-th of line
Type of database is unsatisfactory for the project to be built, then SXi=0;When data on the line that environment templates define on i-th of line
Base management system meets the project to be built, then GXi=1;When database on the line that environment templates define on i-th of line
Management system is unsatisfactory for the project to be built, then GXi=0;When distributed on the line that environment templates define on i-th of line
Application program coordination service meets the project to be built, then FXi=1;When on the line that environment templates define on i-th of line
Distributed application program coordination service is unsatisfactory for the project to be built, then FXi=0;
Environment templates on the corresponding line of maximum matching value are selected, are environment templates on the phase near line of the project to be built;
Environment templates on the phase near line are modified by visualization interface, and are on the modified phase near line by visualization interface
Environment templates define on-line parameters, generate environment on score.
As shown in Fig. 2, this method may include following the embodiment of the invention provides a kind of configuration method of project environment
Step:
Step 201: respectively developing at least one on environment templates, at least one test environment templates and at least one line
Environment templates are stored to different nodes;
The specific implementation of the step can there are two types of:
The first implementation: a node is stored in for an exploitation environment templates;One test environment templates storage
Environment templates are stored in a node on a node, line;Wherein, the node for being stored with exploitation environment templates does not store survey
Environment templates on environment templates and line are tried, correspondingly, the node for being stored with test environment templates does not store exploitation environment templates
With environment templates on line, the node for storing wired upper environment templates does not store exploitation environment templates and test environment templates;Separately
Outside, different exploitation environment templates, which can store, also can store in the same node in different nodes;Different test wrappers
Border template, which can store, also can store in the same node in different nodes;Environment templates can store on different lines
The same node also can store in different nodes.
Second of implementation: being directed to each described exploitation environment templates, executes: by the exploitation environment templates cutting
It stores at least two exploitation environment subtemplates, and by at least two exploitations environment subtemplate to different exploitation child nodes
In;According to the sequence between at least two exploitations environment subtemplate, determine that the first of the different exploitation child nodes calls
Sequentially;For test environment templates described in each, executes: the test environment templates are cut at least two test environment
Subtemplate, and by at least two tests environment subtemplate storage into different test child nodes;According to described at least two
Sequence between a test environment subtemplate determines the second calling sequence of the different test child nodes;For each institute
Environment templates on line are stated, are executed: environment templates on the line being cut into environment subtemplate at least two lines, and by described in extremely
The storage of environment subtemplate is into child node on different lines on few two lines;According between environment subtemplate at least two line
Sequence, determine the third calling sequence of child node on the different lines;
Step 202: for exploitation environment templates definition exploitation type of database, exploitation data base management system described in each
And development DDB application Program Coordination service;
Step 203: defining the weight of the exploitation type of database, the weight of the exploitation data base management system respectively
And the weight of the development DDB application Program Coordination service;
The weight of the exploitation type of database, the weight and exploitation distribution of the exploitation data base management system
The weight of formula application program coordination service meets following weight distribution formula:
Weight distribution formula:
K1+K2+K3=1
Wherein, K1Characterize the weight of the exploitation type of database;K2Characterize the power of the exploitation data base management system
Weight;K3Characterize the weight of the development DDB application Program Coordination service;
Step 204: to test environment template definition test database type, test data base management system described in each
And test distributed application program coordination service;
Step 205: defining the weight of the test database type, the weight of the test data base management system respectively
And the weight of the test distributed application program coordination service;
The weight of the test database type, the weight of the test data base management system and test distribution
The weight of formula application program coordination service meets following weight distribution formula:
Weight distribution formula:
C1+C2+C3=1
Wherein, C1Characterize the weight of the test database type;C2Characterize the power of the test data base management system
Weight;C3Characterize the weight of the test distributed application program coordination service;
Step 206: for data base management system on type of database in environment templates definition wires on line described in each, line
And distributed application program coordination service on line;
Step 207: define respectively the weight of type of database on the line, on the line data base management system weight
And on the line distributed application program coordination service weight;
The weight of type of database on the line is distributed on the weight of data base management system and the line on the line
The weight of formula application program coordination service meets following weight distribution formula:
Weight distribution formula:
X1+X2+X3=1
Wherein, X1Characterize the weight of type of database on the line;X2Characterize the power of data base management system on the line
Weight;X3Characterize the weight of distributed application program coordination service on the line;
Step 208: at least one exploitation environment templates described in storage, at least one described test environment templates and institute
It states and in environment templates, searches whether there is target developing environment templates, the mesh to match with project to be built at least one line
Mapping tries environment templates on environment templates and score, if so, thening follow the steps 209;Otherwise, step 213 is executed;
Step 209: the first node for being stored with target developing environment templates is respectively configured and called for project to be built, is deposited
It contains the second node of target detection environment templates and is stored with the third node of environment templates on score;When receive for
When the request of the project configuration exploitation environment to be built, step 210 is executed;It is surveyed when receiving for the project configuration to be built
When the request in test ring border, step 211 is executed;When receiving as the request of environment on the project configuration line to be built, execute
Step 212;
In this step, if environment templates on target developing environment templates, target detection environment templates and score
Storage mode is the first storage mode that step 201 provides, then the first node, second node and third node represent one
A node;
The storage mode of environment templates is step on target developing environment templates, target detection environment templates and score
The then specific implementation of the step: 201 second of the storage mode provided are opened at least two target of project configuration to be built
Send out child node, and according to first calling sequence, call at least two target developings child node, wherein it is described at least
The exploitation environment subtemplate stored in two target developing child nodes forms a target developing environment templates;I.e. first node by
At least two target developing child nodes composition with the first calling sequence;For at least two target detection of project configuration to be built
Child node, and according to the second calling sequence, call at least two target detections child node, wherein described at least two
The test environment subtemplate stored in a target detection child node forms a target detection environment templates, i.e., second node is by having
It is made of at least two target detection child nodes of the second calling sequence;It is sub at least two score of project configuration to be built
Node, and according to the third calling sequence, call child node at least two score, wherein described at least two
Environment subtemplate forms environment templates on a score on the line stored in child node on score, i.e. third node is by having
Child node forms at least two scores of third calling sequence.Such as: exploitation node (dev node) is by type of database
(redis) child node is developed, data base management system (mysql) develops child node and distributed application program coordination service
(zookeeper) exploitation child node composition;Node (product node) is by child node on type of database (redis) line on line,
Child node on child node and distributed application program coordination service (zookeeper) line on data base management system (mysql) line
Composition;Test node (test node) tests child node by type of database (redis), and data base management system (mysql) is surveyed
Swab node and distributed application program coordination service (zookeeper) test child node composition etc..
Step 210: reading the target developing environment templates, be the target developing environment templates by visualization interface
Development parameters are defined, generate target developing environment, and terminate current process;
Step 211: reading the target detection environment templates, be the target detection environment templates by visualization interface
Test parameter is defined, generates target detection environment, and terminate current process;
Step 212: reading environment templates on the score, be environment templates on the score by visualization interface
On-line parameters are defined, generate environment on score, and terminate current process;
Visualization defined parameters are realized, the definition mode of the visualization interface helps user that can quickly find
Define the parameter of mistake.
Step 213: the external environment construction request sent is received, when environment construction request is building target developing ring
When border, step 214 is executed;When environment construction request is constructs target detection environment, step 217 is executed;When the ring
When border building request is constructs environment on score, step 220 is executed;
Step 214: calculating the matching value of each exploitation environment templates;
Using following first calculation formula, the matching value of each exploitation environment templates is calculated;
First calculation formula:
DKi=K1SKi+K2GKi+K3FKi
Wherein, the DKiThe matching value of i-th of exploitation environment templates of characterization;The institute that environment templates define is developed when i-th
It states exploitation type of database and meets the project to be built, then SKi=1;The exploitation that environment templates define is developed when i-th
Type of database is unsatisfactory for the project to be built, then SKi=0;The exploitation data that environment templates define are developed when i-th
Base management system meets the project to be built, then GKi=1;The exploitation database that environment templates define is developed when i-th
Management system is unsatisfactory for the project to be built, then GKi=0;It is distributed that the exploitation that environment templates define is developed when i-th
Application program coordination service meets the project to be built, then FKi=1;The exploitation that environment templates define is developed when i-th
Distributed application program coordination service is unsatisfactory for the project to be built, then FKi=0;
Exploitation type of database meets the project to be built and refers to, what exploitation type of database was used with project to be built
Type of database is the same, for example is all redis database etc.;Exploitation data base management system, which meets the project to be built, is
Refer to, develops data base management system as the exploitation data base management system that the project to be built uses, for example be all
Mysql data base management system etc.;Development DDB application Program Coordination service meets the project to be built and refers to, exploitation point
The coordination service of cloth application program is as the distributed application program coordination service that the project to be built uses, for example is all
Zookeeper distributed application program coordination service etc..
Step 215: selecting the corresponding exploitation environment templates of maximum matching value, be the close exploitation ring of the project to be built
Border template;
Step 216: the close exploitation environment templates being modified by visualization interface, and are modification by visualization interface
The close exploitation environment templates afterwards define development parameters, generate target developing environment, and terminate current process;
Step 217: calculating the matching value of each test environment templates;
Using following second calculation formula, the matching value of each test environment templates is calculated;
Second calculation formula:
DCi=C1SCi+C2GCi+C3FCi
Wherein, the DCiThe matching value of i-th of test environment templates of characterization;The institute of environment template definition is tested when i-th
It states test database type and meets the project to be built, then SCi=1;The test of environment template definition is tested when i-th
Type of database is unsatisfactory for the project to be built, then SCi=0;The test data of environment template definition is tested when i-th
Base management system meets the project to be built, then GCi=1;The test database of environment template definition is tested when i-th
Management system is unsatisfactory for the project to be built, then GCi=0;The test distributed of environment template definition is tested when i-th
Application program coordination service meets the project to be built, then FCi=1;The test of environment template definition is tested when i-th
Distributed application program coordination service is unsatisfactory for the project to be built, then FCi=0.
Test database type meets the project to be built and refers to, what test database type was used with project to be built
Type of database is the same, for example is all redis database etc.;Test data base management system meets the project to be built
Refer to, test data base management system is as the test data base management system that the project to be built uses, for example is all
Mysql data base management system etc.;Test distributed application program coordination service meets the project to be built and refers to, test point
The coordination service of cloth application program is as the distributed application program coordination service that the project to be built uses, for example is all
Zookeeper distributed application program coordination service etc..
Step 218: selecting the corresponding test environment templates of maximum matching value, be the close test wrapper of the project to be built
Border template;
Step 219: the close test environment templates being modified by visualization interface, and are modification by visualization interface
The close test environment template definition test parameter afterwards generates target detection environment, and terminates current process;
Step 220: calculating the matching value of environment templates on each described line;
Using following third calculation formula, the matching value of environment templates on each described line is calculated;
Third calculation formula:
DXi=X1SXi+X2GXi+X3FXi
Wherein, the DXiCharacterize the matching value of environment templates on i-th of line;When the institute that environment templates define on i-th of line
It states type of database on line and meets the project to be built, then SXi=1;When on the line that environment templates define on i-th of line
Type of database is unsatisfactory for the project to be built, then SXi=0;When data on the line that environment templates define on i-th of line
Base management system meets the project to be built, then GXi=1;When database on the line that environment templates define on i-th of line
Management system is unsatisfactory for the project to be built, then GXi=0;When distributed on the line that environment templates define on i-th of line
Application program coordination service meets the project to be built, then FXi=1;When on the line that environment templates define on i-th of line
Distributed application program coordination service is unsatisfactory for the project to be built, then FXi=0.
Type of database meets the project to be built and refers on line, and type of database and project to be built use on line
Type of database is the same, for example is all redis database etc.;Data base management system, which meets the project to be built, on line is
Refer to, data base management system is as data base management system on the line that the project to be built uses on line, for example is all
Mysql data base management system etc.;Distributed application program coordination service meets the project to be built and refers on line, divides on line
The coordination service of cloth application program is as the distributed application program coordination service that the project to be built uses, for example is all
Zookeeper distributed application program coordination service etc..
Step 221: selecting environment templates on the corresponding line of maximum matching value, be ring on the phase near line of the project to be built
Border template;
Step 222: environment templates on the phase near line being modified by visualization interface, and are modification by visualization interface
Environment templates define on-line parameters on the phase near line afterwards, generate environment on score.
The configuration method for the project environment that any one above-mentioned embodiment provides can be applied to cloud server.
As shown in Figure 3, Figure 4, the embodiment of the invention provides a kind of configuration devices of project environment.Installation practice can be with
By software realization, can also be realized by way of hardware or software and hardware combining.For hardware view, as shown in figure 3,
For project environment provided in an embodiment of the present invention configuration device where equipment a kind of hardware structure diagram, in addition to shown in Fig. 3
Except processor, memory, network interface and nonvolatile memory, equipment in embodiment where device usually can be with
Including other hardware, such as it is responsible for the forwarding chip of processing message.Taking software implementation as an example, as shown in figure 4, being patrolled as one
The device in meaning is collected, is to be read computer program instructions corresponding in nonvolatile memory by the CPU of equipment where it
Get what operation in memory was formed.The configuration device of project environment provided in this embodiment is applied to cloud server, comprising:
Determination unit 401 and environment generation unit 402, wherein
The determination unit 401, at least one exploitation environment templates, at least one for being stored in the cloud server
On a test environment templates and at least one line in environment templates, the determining target developing environment mould to match with project to be built
Environment templates on plate, target detection environment templates and score;
The environment generation unit 402, for when receive develop the request of environment for the project configuration to be built when,
The target developing environment templates that the determination unit 401 is determined are read, are the target developing environment by visualization interface
Template definition development parameters generate target developing environment;When receiving the request for testing environment for the project configuration to be built
When, the target detection environment templates that the determination unit 401 is determined are read, are the target detection ring by visualization interface
Border template definition test parameter generates target detection environment;It is asked when receiving for environment on the project configuration line to be built
When asking, environment templates on the score that the determination unit 401 is determined are read, are on the score by visualization interface
Environment templates define on-line parameters, generate environment on score.
In an alternative embodiment of the invention, the determination unit 401, is deposited for being respectively configured and calling for project to be built
The first node of target developing environment templates is contained, the second node of target detection environment templates is stored with and is stored with target
The third node of environment templates on line, wherein first node, second node and third node are the node in cloud server.
As shown in figure 5, in an alternative embodiment of the invention, the configuration device of above-mentioned project environment further comprises: calling
Sequential build unit 501, wherein
Sequential build unit 501 is called, at least two exploitation rings for being cut into according to each exploitation environment templates
Sequence between the subtemplate of border determines the first calling sequence for being stored with each exploitation child node of the exploitation environment subtemplate;
Sequence between at least two test environment subtemplates being cut into according to each test environment templates, determination are stored with the survey
The second calling sequence of each test child node of test ring border subtemplate;It is cut at least according to environment templates on each line
Sequence on two lines between environment subtemplate determines the third for being stored with child node on each line of environment subtemplate on the line
Calling sequence;
The determination unit 401, for being at least two target developing child node of project configuration to be built, and according to described
The the first calling sequence for calling sequential build unit 501 to determine, calls at least two target developings child node, wherein
The exploitation environment subtemplate stored in at least two target developings child node forms a target developing environment templates;For to
Construct at least two target detection child node of project configuration, and second determined according to the calling sequential build unit 501
Calling sequence, calls at least two target detections child node, wherein store in at least two target detections child node
Test environment subtemplate form a target detection environment templates;For son section at least two score of project configuration to be built
Point, and the third calling sequence determined according to the calling sequential build unit 501, are called at least two score
Child node, wherein environment subtemplate forms on a score on the line stored in child node at least two score
Environment templates.
As shown in fig. 6, in an alternative embodiment of the invention, the configuration device of above-mentioned project environment further comprises: definition
Unit 601 and matching value computing unit 602, wherein
The definition unit 601, for developing type of database, exploitation number for each described exploitation environment templates definition
According to base management system and development DDB application Program Coordination service;Define respectively it is described exploitation type of database weight,
The weight of the exploitation data base management system and the weight of the development DDB application Program Coordination service;And it described opens
Send out the weight of type of database, the weight of the exploitation data base management system and the development DDB application Program Coordination
The weight of service meets following weight distribution formula:
Weight distribution formula:
K1+K2+K3=1
Wherein, K1Characterize the weight of the exploitation type of database;K2Characterize the power of the exploitation data base management system
Weight;K3Characterize the weight of the development DDB application Program Coordination service;
For test environment template definition test database type, test data base management system and test described in each
Distributed application program coordination service;Weight, the test database management system of the test database type are defined respectively
The weight of system and the weight of the test distributed application program coordination service;And the weight of the test database type,
The weight of the test data base management system and the weight of the test distributed application program coordination service, meet following
Weight distribution formula:
Weight distribution formula:
C1+C2+C3=1
Wherein, C1Characterize the weight of the test database type;C2Characterize the power of the test data base management system
Weight;C3Characterize the weight of the test distributed application program coordination service;
For on data base management system on type of database in environment templates definition wires on line described in each, line and line
Distributed application program coordination service;The weight of type of database on the line, data base administration system on the line are defined respectively
The weight of distributed application program coordination service in the weight of system and the line;And the weight of type of database on the line,
On the line on the weight of data base management system and the line distributed application program coordination service weight, meet following
Weight distribution formula:
Weight distribution formula:
X1+X2+X3=1
Wherein, X1Characterize the weight of type of database on the line;X2Characterize the power of data base management system on the line
Weight;X3Characterize the weight of distributed application program coordination service on the line;
The matching value computing unit 602, for the target developing ring to match with the project to be built ought not found
When the template of border, using following first calculation formula, the matching value of each exploitation environment templates is calculated;
First calculation formula:
DKi=K1SKi+K2GKi+K3FKi
Wherein, the DKiThe matching value of i-th of exploitation environment templates of characterization;When the definition unit is i-th of exploitation ring
The exploitation type of database of border template definition meets the project to be built, then SKi=1;When the definition unit is i-th
The exploitation type of database that a exploitation environment templates define is unsatisfactory for the project to be built, then SKi=0;When the definition
Unit 601 is that the exploitation data base management system that i-th of exploitation environment templates defines meets the project to be built, then GKi
=1;The exploitation data base management system that environment templates define, which is developed, for i-th when the definition unit 601 is unsatisfactory for institute
Project to be built is stated, then GKi=0;When the definition unit 601 is that the exploitation that i-th of exploitation environment templates defines is distributed
Application program coordination service meets the project to be built, then FKi=1;When the definition unit 601 is i-th of exploitation environment mould
The development DDB application Program Coordination service that plate defines is unsatisfactory for the project to be built, then FKi=0;
When not finding the target detection environment templates to match with the project to be built, calculated using following second public
Formula calculates the matching value of each test environment templates;
Second calculation formula:
DCi=C1SCi+C2GCi+C3FCi
Wherein, the DCiThe matching value of i-th of test environment templates of characterization;When the definition unit is i-th of test wrapper
The test database type that border template definition goes out meets the project to be built, then SCi=1;When the definition unit 601
The test database type that environment template definition goes out is tested for i-th and is unsatisfactory for the project to be built, then SCi=0;When
The definition unit 601 is described in the test data base management system that i-th of test environment template definition goes out meets to structure
Project is built, then GCi=1;When the definition unit 601 is i-th of test database management that test environment template definition goes out
System is unsatisfactory for the project to be built, then GCi=0;When the definition unit 601 is that i-th of test environment template definition goes out
The test distributed application program coordination service meets the project to be built, then FCi=1;When the definition unit 601 is
The test distributed application program coordination service that i-th of test environment template definition goes out is unsatisfactory for the project to be built,
Then FCi=0;
When not finding environment templates on the score to match with the project to be built, calculated using following thirds public
Formula calculates the matching value of environment templates on each described line;
Third calculation formula:
DXi=X1SXi+X2GXi+X3FXi
Wherein, the DXiCharacterize the matching value of environment templates on i-th of line;When the definition unit is ring on i-th of line
Type of database meets the project to be built on the line of border template definition, then SXi=1;When the definition unit 601 is
Type of database is unsatisfactory for the project to be built on the line that environment templates define on i-th of line, then SXi=0;When described
Data base management system meets the project to be built on the line that definition unit 601 defines for environment templates on i-th of line,
Then GXi=1;When data base management system is discontented on the line that the definition unit 601 defines for environment templates on i-th of line
The foot project to be built, then GXi=0;When on the line that the definition unit 601 defines for environment templates on i-th of line points
Cloth application program coordination service meets the project to be built, then FXi=1;When the definition unit 601 is ring on i-th of line
Distributed application program coordination service is unsatisfactory for the project to be built on the line of border template definition, then FXi=0;
The environment generation unit 402 is further used for selecting the matching value computing unit 602 calculated maximum
It is the close exploitation environment templates of the project to be built with corresponding exploitation environment templates are worth;It is modified by visualization interface
The close exploitation environment templates, and be the modified close exploitation environment templates definition exploitation ginseng by visualization interface
Number generates target developing environment;
The corresponding test environment templates of the calculated maximum matching value of the matching value computing unit 602 are selected, are described
The close test environment templates of project to be built;The close test environment templates are modified by visualization interface, and passing through can
View interface generates target detection environment as the modified close test environment template definition test parameter;
Environment templates on the corresponding line of the calculated maximum matching value of the matching value computing unit 602 are selected, are described
Environment templates on the phase near line of project to be built;Environment templates on the phase near line are modified by visualization interface, and passing through can
View interface defines on-line parameters as environment templates on the modified phase near line, generates environment on score.
The contents such as the information exchange between each unit, implementation procedure in above-mentioned apparatus, due to implementing with the method for the present invention
Example is based on same design, and for details, please refer to the description in the embodiment of the method for the present invention, and details are not described herein again.
The embodiment of the invention provides a kind of readable mediums, including execute instruction, when the processor of storage control executes
Described when executing instruction, the storage control executes the method that any of the above-described embodiment of the present invention provides.
The embodiment of the invention provides a kind of storage controls, comprising: processor, memory and bus;The memory
It is executed instruction for storing, the processor is connect with the memory by the bus, when the storage control is run
When, the processor executes the described of memory storage and executes instruction, so that the storage control executes in the present invention
The method that any embodiment offer is provided.
In conclusion more than the present invention each embodiment at least has the following beneficial effects:
1, in embodiments of the present invention, by the way that at least one exploitation environment templates, at least one test environment are stored in advance
Environment templates in template and at least one line;At least one exploitation environment templates described in storage, at least one described test
On environment templates and at least one described line in environment templates, the determining target developing environment mould to match with project to be built
Environment templates on plate, target detection environment templates and score;Environment is developed when receiving for the project configuration to be built
Request when, read the target developing environment templates, by visualization interface be the target developing environment templates definition open
Parameter is sent out, target developing environment is generated;When receive test the request of environment for the project configuration to be built when, described in reading
Target detection environment templates are that the target detection environment templates define test parameter by visualization interface, generate target and survey
Test ring border;When receiving as the request of environment on the project configuration line to be built, environment templates on the score are read,
It is that environment templates define on-line parameters on the score by visualization interface, generates environment on score, realize to item
Mesh varying environment carries out difference configuration, to effectively improve project development efficiency.
2, it is in embodiments of the present invention, that target developing environment templates define development parameters by visualization interface, is mesh
Mapping test ring border template definition test parameter and on-line parameters are defined for environment templates on score, realizes parameter visualization
Configuration, thus guarantee the accuracy of parameter configuration, meanwhile, make project environment configuration that more there is practicability.
3, in embodiments of the present invention, by the way that at least one is developed environment templates, at least one test environment mould respectively
Environment templates are stored to different nodes on plate and at least one line;It is then respectively configured and calls for project to be built and be stored with mesh
The first node of mark exploitation environment templates is stored with the second node of target detection environment templates and is stored with ring on score
The third node of border template realizes split hair environment templates, tests environment templates partial node management on environment templates and line.
4, it in embodiments of the present invention, for exploitation environment templates described in each, executes: by the exploitation environment templates
At least two exploitation environment subtemplates are cut into, and at least two exploitations environment subtemplate storage is sub to different exploitations
In node;According to the sequence between at least two exploitations environment subtemplate, the first of the different exploitation child nodes is determined
Calling sequence;For at least two target developing child node of project configuration to be built, and according to the first calling sequence, institute is called
State at least two target developing child nodes, wherein the exploitation environment submodule stored in at least two target developings child node
Board group is at a target developing environment templates;For test environment templates described in each, execute: by the test environment templates
At least two test environment subtemplates are cut into, and at least two tests environment subtemplate storage is sub to different tests
In node;According to the sequence between at least two tests environment subtemplate, the second of the different test child nodes is determined
Calling sequence;For at least two target detection child node of project configuration to be built, and according to the second calling sequence, institute is called
State at least two target detection child nodes, wherein the test environment submodule stored in at least two target detections child node
Board group is at a target detection environment templates;For environment templates on line described in each, execute: by environment templates on the line
It is cut into environment subtemplate at least two lines, and environment subtemplate at least two line is stored to son on different lines
In node;According to the sequence between environment subtemplate at least two line, the third of child node on the different lines is determined
Calling sequence;For child node at least two score of project configuration to be built, and according to the third calling sequence, institute is called
State child node at least two scores, wherein environment submodule on the line stored in child node at least two score
Board group is at environment templates on a score;It realizes split hair ring border, test environment progress block management on environment and line, work as item
Mesh on exploitation environment, test environment or line in environment operational process when something goes wrong, can be checked with piecemeal, to improve
Check efficiency.
5, in embodiments of the present invention, by calculate each exploitation environment of project to be built and storage, test environment and
The matching value of environment on line, for ring on the similar exploitation environment of project to be built lookup, similar test environment and similar line
Border, by modifying similar exploitation environment, exploitation environment needed for becoming project can greatly shorten the exploitation environment of project, survey
The building duration of environment greatly shortens exploitation, test of project etc. to further increase working efficiency on test ring border or line
Duration.
It should be noted that, in this document, such as first and second etc relational terms are used merely to an entity
Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation
Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non-
It is exclusive to include, so that the process, method, article or equipment for including a series of elements not only includes those elements,
It but also including other elements that are not explicitly listed, or further include solid by this process, method, article or equipment
Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged
Except there is also other identical factors in the process, method, article or apparatus that includes the element.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light
In the various media that can store program code such as disk.
Finally, it should be noted that the foregoing is merely presently preferred embodiments of the present invention, it is merely to illustrate skill of the invention
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention,
Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.