Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 1.37 KB

File metadata and controls

39 lines (36 loc) · 1.37 KB

react-website-bash-script

Bash script for creating and deploying react.js website on AWS instance

  • Allow TCP requests in Security Groups for EC2 while creating EC2 Instance.
  • Before executing the script . Update the correct value of User executing the script in init_script.sh & deploy_script.sh ( Variable $UNAMEX ).
# To start initialization & Dependencies installation:
$ sudo bash init_script

# Update the config file

# Deploy the Application
$ sudo bash deploy_script
  • Please add entries given below in /etc/hosts
127.0.0.1       nsfcareer.io

IMPORTANT STEPS TO EXECUTE SCRIPT

Instructions to follow to set up the application on nsfcareer.io:

  1. Point the nsfcareer.io domain to your EC2 Instance IP address. And set the IP updation time to 1m (In Google Domains section).
  2. clone the above repository
  1. Run the init_script
$ sudo bash init_script
  1. Input the domain name like given below without double quotes http://nsfcareer.io
  2. Wait for the Initialization to complete
  3. Update the configuration_keys.json file in /config/configuration_keys.json
  4. Run the deploy_script
$ sudo bash deploy_script
  1. Input the domain name like given below without double quotes http://nsfcareer.io
  2. Your app is deployed visit http://nsfcareer.io