Skip to content

Service Website

Cintia Del Rio edited this page Jul 15, 2022 · 2 revisions

License

Open source

Description of the service

Main website

How to access it

How to restart it

Using docker

Logs location

Docker logs

Backup restoring

Instructions from PRD->STG:

# dowload files from S3
# configure your AWS credentials here
aws configure 

aws s3 cp s3://openmrs-backups/mua/mysql-2018-09-02_00-00-01.tar.gz .
aws s3 cp s3://openmrs-backups/mua/wordpress-2018-09-02_00-00-01.tar.gz .

rm -rf ~/.aws

sudo mv *.tar.gz /opt/backups

sudo -i
cd docker/wordpress-stg
cat .env
# note the two passwords

docker-compose down -v
docker-compose run --rm --no-deps backup bash restore.sh 2018-09-02_00-00-01
docker-compose up --no-deps -d mysql

docker exec -it wordpressstg_mysql_1 bash
mysql -u root -p
# use production root password, in .env

use mysql;
update user set password=PASSWORD("<staging root password>") where User='root' and Host="%";
update user set password=PASSWORD("<staging openmrs password>") where User="openmrs" and Host="%";
flush privileges;
quit

mysql -u openmrs  -p wordpress

UPDATE wp_options SET option_value='https://site-stg.openmrs.org' WHERE option_name='siteurl';
UPDATE wp_options SET option_value='https://site-stg.openmrs.org' WHERE option_name='home';

exit

docker-compose up -d

Managing users

Several different users are administrators.

New users can be created by administrators from http://openmrs.org/wp-admin/user-new.php. For the purpose of adding Release Notes you need to assign a new user the Author role.

To remove access, leave as 'No Role assigned'.

Clone this wiki locally