Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

134
Visualizações
AWS Amplify Deployment

I'm having a problem deploying to Amplify. Before that, I deployed to heroku, and there were no problems. I have a react application that uses express on the backend.

For Heroku, the following algorithm works. I install the dependencies for the server npm install , then go to the client folder and install the dependencies for the frontend npm install. Then the frontend of application is built npm run build.

At the root of my application, I have a procfile where it says web: npm start. After deploying this scenario, the server starts up in production mode and gives me the builded index.html from the client/build folder. Things are good.

OK. For deploying to Amplify, I try to use this amplify.yml

version: 1
env:
  variables:
    PROD: true
backend:
  phases:
    preBuild:
      commands:
        - npm install
    build:
      commands: []
frontend:
  phases:
    preBuild:
      commands:
        - cd client
        - npm install
    build:
      commands:
        - npm run build
  artifacts:
    baseDirectory: client/build
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*

The build is going well, and I can go to the link and see my application. But only the frontend was deployed. Requests to my server are not working

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda