@cloudbase/manager-node 4.6.3 → 4.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cloudrun/index.js +6 -0
- package/package.json +1 -1
package/lib/cloudrun/index.js
CHANGED
|
@@ -198,6 +198,12 @@ class CloudRunService {
|
|
|
198
198
|
const serverDetail = await this.detail({ serverName });
|
|
199
199
|
const _serverConfig = Object.assign(Object.assign({}, serverConfig), ((serverDetail === null || serverDetail === void 0 ? void 0 : serverDetail.ServerConfig.Tag) === 'function:' ? { Port: 3000 } : {}) // 函数型不能指定端口,需要固定为3000
|
|
200
200
|
);
|
|
201
|
+
if ((serverDetail === null || serverDetail === void 0 ? void 0 : serverDetail.ServerConfig.Tag) === 'function:') {
|
|
202
|
+
deployInfo.BuildPacks = {
|
|
203
|
+
LanguageVersion: '20.18',
|
|
204
|
+
RepoLanguage: 'Node.js'
|
|
205
|
+
};
|
|
206
|
+
}
|
|
201
207
|
deployInfo.ReleaseType = 'FULL';
|
|
202
208
|
return this._upsertFunction(false, {
|
|
203
209
|
name: serverName,
|