This tutorial will guide you to deploy a React web application in Nginx server in AWS EC2 using Bitbucket Pipelines.

To get started you will require the following things:

  1. Bitbucket account (Free plan is okay)
  2. AWS Account
  3. AWS EC2 instance with Nginx installed
  4. SSH access to EC2 instance
  5. and Obviously, basic knowledge of Git

Let’s get started.

  • Create a new React app and push the code in Bitbucket by creating a new repository. (Or, you can use your existing React app repository)
  • Goto the repository settings

Image for post

Bitbucket menu

  • Scroll down to the PIPELINES then click Settings and Enable Pipelines

Image for post

Bitbucket Pipelines Settings

  • Click Configure bitbucket-pipelines.yml

Image for post

#react #nginx #aws #aws-ec2 #bitbucket-pipelines

Deploying React application in Nginx server in AWS EC2
16.10 GEEK