|
|
@@ -17,7 +17,7 @@ class DeployCloudChoose extends Component {
|
|
|
super();
|
|
|
this.state = {
|
|
|
userID: 'demo',
|
|
|
- dbKind: 'fc-db', // fc-db
|
|
|
+ dbKind: 'mongodb', // mongodb fc-db
|
|
|
cloudID: 'tencent_CloudID',
|
|
|
secretID: '',
|
|
|
secretKey: '',
|
|
|
@@ -101,11 +101,11 @@ class DeployCloudChoose extends Component {
|
|
|
}
|
|
|
|
|
|
|
|
|
- console.log(now, functionName, serviceName, resources);
|
|
|
+ console.log('now', now, 'functionName', functionName, 'serviceName', serviceName, 'resources', resources);
|
|
|
axios.post(deployAll,
|
|
|
{
|
|
|
'fc-name': functionName,
|
|
|
- 'bucket': 'native-fc',
|
|
|
+ 'bucket': dbKind === 'mongodb'? 'native-fc' : 'fcdb-deploy',
|
|
|
'object-file': 'fc-only.zip',
|
|
|
'res-bucket': 'case',
|
|
|
'resources': resources,
|