-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Andreas Schimanski edited this page Nov 25, 2019
·
14 revisions
Welcome to the IHIW_Management wiki!
- setup aws cli locally (first time only)
- install aws cli (https://aws.amazon.com/cli/?nc1=h_ls)
- run aws configure (user api keyand password must be known)
- copy file to aws s3 bucket
- aws s3 cp ihiw-management-1.0.2.jar s3://ihiw.management.build.artifacts/
- access bastion instance via ssh ** ssh -i [keyFile] ec2-user@aws.ihiws.org
- access ihiw app server instance ** STAGING 10.0.1.60 ** PROD 10.0.2.73 ** ssh -A ec2-user@[server-IP] ** sudo -s
- fetch file from s3
- cd /usr/local/ihiw
- aws s3 cp s3://ihiw.management.build.artifacts/ihiw-management-1.0.2.jar .
- start/stop ihiw app ** run stop.sh ** adjust softlink to new build artifact (ln -s ihiw-management-1.0.2.jar ihiw-management-app) ** run start.sh
- [java -jar ihiw-management-app --spring.config.location=classpath:/config/application.yml,file:/home/ec2-user/application-prod.yml --spring.profiles.active=prod &