22nd February - Deploy to production commands


Deploy to test web server
In notey-web and notey-java,
git checkout master
git pull
git commit
git push

Create jar (check all boxes)
Upload jars to test server
scp ~/Desktop/thelistapp.jar ec2-user@54.205.130.117:/home/ec2-user/source/build/lib
scp ~/Downloads/thelistweb.jar ec2-user@54.205.130.117:/home/ec2-user/source/build/lib

Run deploy script
ssh ec2-user@54.205.130.117

~/source/build/bin/deployweb.sh --deploy -A notey-testing -G test-web awstest origin/master

For mobile web deployment
~/source/build/bin/deployweb.sh --deploy -A notey-testing -G test-mobile awstest origin/mobileWeb

Deploy to Production

1.In notey-web, 
git checkout production 
git pull
git merge master
git push
git tag {date}_{web|mobile}
git push --tags

After deployment,
git checkout master

2.In notey-java, 
git checkout master
git pull
git tag {date}_{web|mobile|batch}
git push --tags
refresh eclipse
 
3. Upload jars to test server
scp ~/Desktop/thelistapp.jar ec2-user@54.205.130.117:/home/ec2-user/source/build/lib
scp ~/Downloads/thelistweb.jar ec2-user@54.205.130.117:/home/ec2-user/source/build/lib


4. Run the script:
ssh ec2-user@52.1.219.124
 ~/source/build/bin/deployweb.sh --deploy -A notey-asg -G notey-web-asg aws origin/production


Push to mobile production server
1.In notey-web,
git checkout prod_mobileWeb
git pull
git merge mobileWeb
git push
git tag {date}_mobile
git push --tags

2.In notey-java, 
git checkout master
git pull
git tag {date}_{web|mobile|batch}
git push --tags

3. Upload jars to test server
scp ~/Desktop/thelistapp.jar ec2-user@54.205.130.117:/home/ec2-user/source/build/lib
scp ~/Downloads/thelistweb.jar ec2-user@54.205.130.117:/home/ec2-user/source/build/lib
  ~/source/build/bin/deployweb.sh --deploy -A notey-asg -G notey-mobile-asg aws origin/prod_mobileWeb

Comments