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

631
Visualizações
AWS CodeBuild not generating build folder - NodeJS

I'm trying to migrate a website from Heroku to AWS and running into trouble with CodeBuild. The source code is on GitHub and I'm using CodePipeline - CodeBuild - Elastic Beanstalk. The Pipeline works fine and it seems like the code is making its way to Elastic Beanstalk. However, I'm stuck at the CodeBuild step. (buildspec.yml is below)

The logs seem to run the commands fine, but when I output the build to an S3 bucket, there is no build folder. And that's the problem I'm having with Elastic Beanstalk...it's not finding the build folder to render the front end. What am I missing??

buildspec.yml:

version: 0.2

phases: 
  install:
    commands:
      # Install Node
      - echo Installing Node 12...
      - curl -sL https://deb.nodesource.com/setup_12.x | bash -
      - apt install -y nodejs
  pre_build:
    commands:
      #install dependencies
      - echo Installing dependencies...
      - npm install
  build:
    commands:
      #build
      - echo Building...
      - npm run build
artifacts:
  files:
    "**/*"
  discard-paths: no
  base-directory: client/build

Site is built with MySQL, Express, React, NodeJS

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

based on the buildspec.yaml reference the artifacts should be an array.

Thus, I think you should change your current files section into:

artifacts:
  files:
    - '**/*'
over 4 years ago · Santiago Trujillo Relatório
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