UCDavisLibrary / main-wp-website-deployment

Deployment files and commands for library.ucdavis.edu
1 stars 1 forks source link

Deployment steps #33

Closed qjhart closed 1 year ago

qjhart commented 2 years ago

Once v3 ins in production the host DNS will be correct but before

'/etc/hosts'

169.237.102.131 library.ucdavis.edu
[root@gold ~]# cd /etc/library-website/
[root@gold library-website]# cd v3
[root@gold v3]# ls -lrt
total 36
drwxr-sr-x. 2 quinn docker   49 Jul 25 14:50 gcloud
-rw-r--r--. 1 quinn docker 5414 Jul 25 14:50 readme.md
-rw-rw----. 1 quinn docker 2366 Jul 25 16:14 main-website-content-reader-key.json
-rw-r--r--. 1 quinn docker 2366 Aug  2 15:05 main-website-content-writer-key.json
drwxr-sr-x. 2 quinn docker   51 Aug  5 08:38 templates
-rwxr-xr-x. 1 quinn docker 4493 Aug  5 08:38 config.sh
drwxr-sr-x. 2 quinn docker 4096 Aug  5 08:38 cmds
drwxr-sr-x. 4 quinn docker 4096 Aug  5 08:38 utils
-rw-r--r--. 1 quinn docker 4070 Aug  5 11:08 docker-compose.yaml
[root@gold v3]#

dc down -v 
git pull
dc pull
UcDust commented 2 years ago

Restart indexer when it crashes, then after indexer finishes completely-

  1. docker compose rm -f -s wordpress
  2. Edit env to port 80
  3. docker compose up -d wordpress

docker compose down other instance