Skip to content
Andreas Schimanski edited this page Nov 25, 2019 · 14 revisions

Welcome to the IHIW_Management wiki!

Application Deployment

Put build artifact on aws s3

  • setup aws cli locally (first time only)
  • 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/

Run application on aws instance

  • access bastion instance via ssh
  • access ihiw app server instance [STAGING 10.0.1.60; PROD 10.0.2.73]
    • ssh -A ec2-user@[server-IP]
  • fetch build artifact from S3
    • sudo -s
    • 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 &
Clone this wiki locally