-
Notifications
You must be signed in to change notification settings - Fork 10
Service Website
Cintia Del Rio edited this page Jul 15, 2022
·
2 revisions
Open source
Main website
Using docker
Docker logs
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
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'.
Read this before updating this wiki.