amplify-cli: amplify publish needs "hosting add" and crashed when publish 2

amplify publish

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

amplify add hosting Hosting is already fully enabled.

amplify remove hosting No resources added for this category

This is updated version of CLI

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 26 (7 by maintainers)

Most upvoted comments

@emeryaa Please delete the hosting folder in amplify/backend/hosting directory and try adding hosting using the CLI again.

Deleting amplify/backend/hosting and trying again, worked for me

Fuck that I had remove this file from directory. It not helps

On Sat, Mar 30, 2019 at 2:07 AM Kaustav Ghosh notifications@github.com wrote:

@emeryaa https://github.com/emeryaa Sometimes you can’t view .* files on your editor. So, I would recommend removing it from the terminal using rm .graphqlconfig.yml command from your project root and then running amplify codegen add --apiId <the-appsync-project-id>

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-cli/issues/1129#issuecomment-478164236, or mute the thread https://github.com/notifications/unsubscribe-auth/AZTyrih3XdYEjphtgD-to-4S8FjgYCKFks5vbo6mgaJpZM4cMg02 .

Yes, but I too confuse why amazon have such silly errors with his soft. This make me some nervous. Look, today to made modern a website for the world. I need to know JS, be able to project the db, know some of one backend language like a python,ruby, golang, php, need to know how to build apis, maybe later I need to know some additinal language for external fishes. And do I need to fight with such respectful service like amazon? Which it have a lot of services at his stack. And his CLI?? what is it?? Why it make me so nervous? Its basic functions! wtf??!