首页 > 解决方案 > 无法在放大托管添加中添加托管 - 找不到应用程序

问题描述

我有点困惑,我能够毫无问题地部署我的代码(开发环境)amplify push

Current Environment: dev

| Category | Resource name          | Operation | Provider plugin   |
| -------- | ---------------------- | --------- | ----------------- |
| Api      | littlewishlist         | Update    | awscloudformation |
| Auth     | littlewishlist7d5de4fe | No Change | awscloudformation |
? Are you sure you want to continue? Yes

.......

✔ Generated GraphQL operations successfully and saved at src/graphql
✔ All resources are updated in the cloud

GraphQL endpoint: https://XXXX.amazonaws.com/graphql
GraphQL API KEY: da2-XXX

然后当检查我在本地有哪个 evn 时,它说我有我的开发环境:

(base) hutber@hutber:/var/www/littlewishlist/lwl$ amplify env list

| Environments |
| ------------ |
| *dev         |

但是做一个amplify publish我收到以下内容:

 Please add hosting to your project before publishing your project
 Command: amplify hosting add

所以我然后运行代码:amplify hosting add

hutber@hutber:/var/www/littlewishlist/lwl$ amplify hosting add
? Select the plugin module to execute Hosting with Amplify Console (Managed hosting with custom domains, Continuous deployment)
App XXXX not found.
NotFoundException: App dc2bpv99poqrq not found.

标签: javascriptamazonamplify

解决方案


推荐阅读