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
Instructions to follow to set up the application on nsfcareer.io:
- Point the nsfcareer.io domain to your EC2 Instance IP address. And set the IP updation time to 1m (In Google Domains section).
- clone the above repository
- Run the init_script
$ sudo bash init_script
- Input the domain name like given below without double quotes http://nsfcareer.io
- Wait for the Initialization to complete
- Update the configuration_keys.json file in /config/configuration_keys.json
- Run the deploy_script
$ sudo bash deploy_script
- Input the domain name like given below without double quotes http://nsfcareer.io
- Your app is deployed visit http://nsfcareer.io