This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Switching to Maintenance Mode on Production Server
Sri Maurya Kummamuru edited this page Jan 20, 2021
·
2 revisions
❗ | Warning: This page is going to be retired and this documentation will be maintained at - https://github.com/OpenConceptLab/ocl-docs/blob/main/docs/source/oclapi/admin/switchingtomaintenancemodeonproduction.md |
---|
ssh user@openconceptlab.org
cd /var/www/openconceptlab
cp maintenance.html.original maintenance.html
Congrats you are in the maintenance mode.
ssh user@openconceptlab.org
cd /var/www/openconceptlab
rm maintenance.html
Congrats you are in the production mode.
- We change the /etc/nginx/sites-enabled/default file to make this happen.
server {
server_name api.openconceptlab.org www.api.openconceptlab.org;
..........
location / {
if (-f $document_root/maintenance.html) {
return 503;
}
................
}
error_page 503 @maintenance;
location @maintenance {
rewrite ^(.*)$ /maintenance.html break;
}
}
- You can find a maintenance file example from ocl_web repo
Overview
Resources
Import / Export
- CSV Import
- Bulk Import
- Org/Source Import
- Export API
- Subscriptions
- Subscription Client Testing Process
- OpenMRS to OCL Mapping
Troubleshooting & Operations
- Data integrity checks
- Maintaining OCLAPI's Docker containers
- Maintaining MongoDB and Solr
- How to check logs
- NewRelic monitoring setup
- Configuration changes to make tests and import job run faster
- Accessing Solr UI Remotely
- Data Backup and Restore
- SSL Configuration
- Flower
- Switching to Maintenance Mode on Production Server
- Docker networking and Security
Other