- Mais recentes
- Mais votos
- Mais comentários
So amplify isn't a server. It's a service. And one meant for deploying your UI, not the backend. To run your server you would need to use a different service like EC2, ECS or beanstalk. From the FAQ
AWS Amplify consists of a set of tools (open source framework, visual development environment, console) and services (web app and static website hosting) to accelerate the development of mobile and web applications on AWS.
See here for more details about amplify https://aws.amazon.com/amplify/faqs/
Amplify is usually used for front-end applications, not backend HTTP servers. But, Amplify does support Server-side Render.
Try updating your CI backend build pipeline to execute a custom script instead of the built-in one:
backend:
phases:
build:
commands:
- sh scripts/amplifyPush.sh
The custom scripts/amplifyPush.sh
can have whatever you need for running your NodeJS application.
I hope this helps.
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos