Deployment steps

THESE STEPS ARE ONLY VALID FOR VERY OLD VERSIONS OF BAHMNI PRIOR TO V0.86. YOU WILL LIKELY BE USING A NEW VERSION, AND SHOULD REFER TO THIS DOCUMENT.


Depending on your deployment set these environment variables

export FACTER_deploy_bahmni_openerp=true
export FACTER_deploy_bahmni_openelis=true
export FACTER_deploy_bahmni_pacs=true
export FACTER_implementation_name=jss
export FACTER_bahmni_user_name=jss

Download Deployer

(clone or pull from using either of follow commands)

 

git clone git@github.com:Bahmni/bahmni-environment.git
git clone https://github.com/Bahmni/bahmni-environment.git 

Download Bahmni Installers
You can execute the following command for getting the latest installers

 

sh bahmni-environment/scripts/download-build.sh


Or if you want a specific installer version then download them from the continuous integration server by doing the following (e.g. if your implementation is jss, branch is master, bahmni build number is 102, implementation (i.e. jss) config version is 18)

- logon to https://ci.mybahmni.org/go/auth/login
- user=guest, password=p@ssw0rd
- wget https://ci.mybahmni.org/go/files/Bahmni_artifacts_master/102/CollectArtefactsStage/Latest/defaultJob/bahmni_installer.sh
- wget 
https://ci.mybahmni.org/go/files/Build_jss_config_master/18/Package/Latest/package/jss_config_installer.sh

It would download bahmni_installer.sh and ${FACTER_implementation_name}_config_installer.sh

Pre-Deploy

If you want to take backup of your current state, run

 

sh bahmni-environment/scripts/download-build.sh
./bahmni-enviromnent/scripts/predeploy-master.sh <your-mysql-password>

(note: using the word master above because we use master slave setup in production. we would update with documentation for master slave setup later. if your services are stopped then )

 OR you could just stop the following services

 

sudo service httpd stop
sudo service tomcat stop
sudo service openerp stop

Deploy bahmni

cd /packages/build 
sh bahmni_installer.sh

Deploy implementation config 

cd /packages/build 
sh <implementation_name>_config_installer.sh


Error Logs

Look at /bahmni_temp/logs/bahmni_deploy.log incase of any error.

The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)