AWS Codepipeline not serving React from a PHP React Git repository

+1 vote

I was setting up a Codepipeline for my GIT repository when I was new to AWS. My backend is PHP and my frontend is React. In order to use php as the backend, I first established an elastic beanstalk environment. Then I built my code using AWS code build, and at the end, I made a code pipeline.

The problem is that all I can see in the pipeline when I try to access it is php. Frontend for React is not loading.


I initially assumed that perhaps my React code was not being built, so I made a small tweak to it and received an update in AWS CodeBuild. So, I suppose that is not the issue.

If anyone requires any additional information, kindly let me know so that I may amend my query.

This is the yaml file I use.

version: 0.2
phases:
  install:
    # runtime-versions:
    #   nodejs: 14.11.0
    commands:
      # - echo installing node 16 
      # - curl -sL https://deb.nodesource.com/setup_16.x | bash
      # - apt install -y nodejs
      # - echo installing Yarn...
      # -  curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg |  apt-key add -
      # - echo "curl -sS https://dl.yarnpkg.com/debian/ stable main"
      # - apt install --no-install-recommends yarn
  pre_build:
    commands:
      - echo Installing source NPM dependencies...
      - npm install 
  build:
    commands:
      - echo Testing ...
      # yarn test
      - echo Building ...
      - npm run build
  post_build:
    commands:
      - echo Build completed on `date`
# Include only the files required for your application to run.
artifacts:
  files:
    - "**/*"
base-directory : 'build'
    # - config.js
    # - index.js
    # - reset.js
    # - package.json
    # - node_modules/**/*

Dec 13, 2022 in AWS by Ashwini
• 5,430 points
745 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In AWS

+2 votes
2 answers

How do we move a domain from Hostgator to AWS Route 53?

I found this  Before transferring a domain, make ...READ MORE

answered Aug 3, 2018 in AWS by Priyaj
• 58,020 points
5,966 views
0 votes
1 answer

if instance is a part of some AutoScaling Group in AWS or not ?

You can run this command below on ...READ MORE

answered Jun 2, 2018 in AWS by Cloud gunner
• 4,670 points
1,809 views
+1 vote
3 answers

Not able to pass params POST to AWS Lambda from Amazon API Gateway

For this template : application/x-www-form-urlencoded  This line below will ...READ MORE

answered Jun 13, 2018 in AWS by Cloud gunner
• 4,670 points
8,769 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Why I get AWS repository ARN could not be added to restrict access?

heh... answer my own question: I must ...READ MORE

answered Sep 21, 2018 in AWS by Priyaj
• 58,020 points
843 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP