问题描述
我之前的 uniCloud 服务空间已经过期并被释放,无法恢复。
因此我新创建了一个 阿里云服务空间,然后将本地项目重新关联到新的服务空间,并尝试重新部署。
目前我已经完成:
重新关联新的 uniCloud 服务空间(阿里云)
右键 database 初始化数据库
右键 cloudfunctions 上传所有云函数
云端后台的 公共模块目前可以看到:
uni-config-center
uni-id-common
uni-open-bridge-common
uni-stat
但是在上传 cloudfunctions 时仍然出现错误:
上传失败: The common module uni-captcha on which the cloud function uni-captcha-co depends does not exist or is not uploaded to the cloud.
上传失败: The common module uni-captcha on which the cloud function uni-id-co depends does not exist or is not uploaded to the cloud.
上传失败: The common module sign-in on which the cloud function rewarded-video-ad-notify-url depends does not exist or is not uploaded to the cloud.
完整日志如下:
[阿里云:robot-charging-station] 上传失败: The common module uni-captcha on which the cloud function uni-captcha-co depends does not exist or is not uploaded to the cloud.
[阿里云:robot-charging-station] 上传失败: The common module uni-captcha on which the cloud function uni-id-co depends does not exist or is not uploaded to the cloud.
[阿里云:robot-charging-station] 上传失败: The common module sign-in on which the cloud function rewarded-video-ad-notify-url depends does not exist or is not uploaded to the cloud.
当前项目结构
cloudfunctions 中包含:
admin-menus-sync
admin-robot
ext-storage-co
robot-service
telemetryIngest
uni-analyse-searchhot
uni-captcha-co
uni-id-co
uni-portal
uni-sms-co
uni-stat-cron
uni-stat-receiver
uni-upgrade-center
userService
rewarded-video-ad-notify-url
问题:
请问在 服务空间被释放后重新创建的情况下:
这些 common module(如 uni-captcha、sign-in)应该如何重新安装?
是否需要重新导入 uni-id-pages 或相关插件?
还是需要在 uniCloud/common 目录手动添加模块再上传?
目前我本地项目的 uniCloud 目录下 没有 common 目录,只有:
uniCloud
├ cloudfunctions
└ database
所以不确定这些 common module 应该如何重新恢复。
希望大神能指点正确的恢复方式 谢谢!