Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack

Documentation

Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

  1. Configure ~/.ssh/config (needed for deployment script to perform command line tasks on AWS instance)

    Host ec2-50-112-42-202.us-west-2.compute.amazonaws.com
    Hostname ec2-50-112-42-202.us-west-2.compute.amazonaws.com
    User ec2-user
    IdentityFile "path/to/openmrs-infrastructure-us_west.pem"

    Host ec2-54-245-143-28.us-west-2.compute.amazonaws.com
    Hostname ec2-54-245-143-28.us-west-2.compute.amazonaws.com
    User ec2-user
    IdentityFile "path/to/openmrs-infrastructure-us_west.pem"

    Host ec2-54-245-1-154.us-west-2.compute.amazonaws.com
    Hostname ec2-54-245-1-154.us-west-2.compute.amazonaws.com
    User ec2-user
    IdentityFile "path/to/openmrs-infrastructure-us_west.pem"
  2. Prepare the omods

    1. Compile omods
    2. Prepare folders to be similar to CI setup
      cd vagrant-OpenMRS/code/
      rm -rf buildTools
      rm -rf cpm
      cp -rf configuration-master buildTools
      cp -rf openmrs-cpm cpm
      mkdir -p buildTools/omod/libs/

    3. Copy omods to folder that CI setup expects
      cp openmrs-cpm/conceptpropose/build/libs/*.omod buildTools/omod/libs/
      cp openmrs-cpm/conceptreview/build/libs/*.omod buildTools/omod/libs/
  3. Deploy!

    cd vagrant-OpenMRS/code/buildTools
    ./go node:deploy_omod[ec2-54-245-143-28.us-west-2.compute.amazonaws.com]

     

Notes

Step #2 could probably be replace

    rm -rf buildTools
rm -rf cpm 
cp -rf configuration-master buildTools
cp -rf openmrs-cpm cpm

with

   ln -s configuration-master buildTools
ln -s openmrs-cpm cpm
  • No labels