CHT Applications > Quick Guides > Hosting > Self Hosting
How to access container, retrieve logs, isolate security groups
Be sure to change the file permissions to 0600 or lower
for the .pem file:
sudo chmod 0600 ~/Downloads/name_of_file.pem
Goal
: SSH into instance
Create EBS Volume
Attach volume to EC2 instance
(Optional): Increase disk size
If you are using a newly created EBS Volume, you will have to format the disk approriately:
sudo mkfs -t ext4 <location>
in step 4Goal
: Mount EBS volume to /srv
Goal
: CHT Application bootstraps and comes online
/srv/settings/medic-core/nginx/private/
default.key
and the certificate file as default.crt
svc-restart medic-core nginx
/srv/storage/<service_name>/logs/*.log
/srv/storage/medic-core/
, /srv/settings/medic-core/couchdb/local.ini
, wipe all other files in /srv [Note: Make script publicly accessibile]How to access container, retrieve logs, isolate security groups
Dealing with out-of-memory errors in couch2pg
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.