Code pipeline build stage fail with node.js app

0

I have a node.js/express app I have deployed on elastic beanstalk. I've build and zipped the backend and successfully deployed the app manually. I would like to have Code pipeline get the source code on github, build the app and deploy to the current elastic beanstalk environment. I've written a buildspec.yml file and placed it in the root of my project. The root also contains the /backend and /frontend folders for the app. The build stage fails because it cannot find the .YAML file. When I put the build instructions directly into codebuild, the build starts but fails at npm run build. I've tested the build commands locally and they work. Here is what is currently in my buildspec.yml: version: 0.2 phases: pre_build: commands: - cd frontend - npm install build: commands: - npm run build - mv build ../backend/ - cd ../backend - npm install - npm shrinkwrap post_build: commands: - npm run buildpack

any suggestions?

devsax
질문됨 5달 전105회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠