|
@@ -211,7 +211,6 @@ class NameAndDB extends Component {
|
|
|
db: '',
|
|
db: '',
|
|
|
username: '',
|
|
username: '',
|
|
|
password: '',
|
|
password: '',
|
|
|
- admin: '',
|
|
|
|
|
disableDeployButton: false
|
|
disableDeployButton: false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -402,8 +401,11 @@ class NameAndDB extends Component {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- storeEdnAndDeploy = (secretID='AKIDkYBvY0LOJ2bzCDmnMjz4xgFertmVJlVE', secretKey='zwjKk29TdcYP8g2FG5kCSWmz3wcH92lN', appId='1254337200', bucketName, dbKind, userID, admin, username, password, db, host, customName, cloudID) => {
|
|
|
|
|
|
|
+ storeEdnAndDeploy = (secretID, secretKey, appId, bucketName, dbKind, userID, admin, username, password, db, host, customName, cloudID) => {
|
|
|
// store *.edn to cos
|
|
// store *.edn to cos
|
|
|
|
|
+ secretID = secretID? secretID: 'AKIDkYBvY0LOJ2bzCDmnMjz4xgFertmVJlVE'
|
|
|
|
|
+ secretKey = secretKey? secretKey: 'zwjKk29TdcYP8g2FG5kCSWmz3wcH92lN'
|
|
|
|
|
+ appId = appId? appId: '1254337200'
|
|
|
let deployConf = dbKind === 'mongodb' ?
|
|
let deployConf = dbKind === 'mongodb' ?
|
|
|
` {:secretId "${secretID}"\n` +
|
|
` {:secretId "${secretID}"\n` +
|
|
|
` :secretKey "${secretKey}"\n` +
|
|
` :secretKey "${secretKey}"\n` +
|
|
@@ -465,7 +467,6 @@ class NameAndDB extends Component {
|
|
|
db,
|
|
db,
|
|
|
username,
|
|
username,
|
|
|
password,
|
|
password,
|
|
|
- admin,
|
|
|
|
|
customName,
|
|
customName,
|
|
|
disableDeployButton
|
|
disableDeployButton
|
|
|
} = this.state;
|
|
} = this.state;
|
|
@@ -524,15 +525,6 @@ class NameAndDB extends Component {
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div>
|
|
|
|
|
- <span className='item-title-cloud'>验证数据库</span>
|
|
|
|
|
- <Input style={{width: 250}} value={this.state.admin}
|
|
|
|
|
- onChange={(e) => {
|
|
|
|
|
- this.setState({admin: e.target.value})
|
|
|
|
|
- }}
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
<div>
|
|
<div>
|
|
|
<span className='item-title-cloud'>用户名</span>
|
|
<span className='item-title-cloud'>用户名</span>
|
|
|
<Input style={{width: 250}} value={this.state.username}
|
|
<Input style={{width: 250}} value={this.state.username}
|
|
@@ -560,7 +552,8 @@ class NameAndDB extends Component {
|
|
|
'正在部署...'
|
|
'正在部署...'
|
|
|
:
|
|
:
|
|
|
<Button type='primary' onClick={() => {
|
|
<Button type='primary' onClick={() => {
|
|
|
- this.storeEdnAndDeploy(secretID, secretKey, appId, bucketName, dbKind, userID, admin, username, password, db, host, customName, cloudID)
|
|
|
|
|
|
|
+ console.log('sssss', secretID)
|
|
|
|
|
+ this.storeEdnAndDeploy(secretID, secretKey, appId, bucketName, dbKind, userID, db, username, password, db, host, customName, cloudID)
|
|
|
}}>开始部署</Button>
|
|
}}>开始部署</Button>
|
|
|
|
|
|
|
|
}
|
|
}
|