Adding more info to README.md

This commit is contained in:
Josh Knapp 2023-04-05 09:48:17 -07:00
parent 0dbb4f291b
commit df0e7d6a53

View File

@ -17,6 +17,29 @@ mkdir db
docker run -it --rm -p 80:80 -p 443:443 -e environment=DEV --mount type=bind,source="$(pwd)"/web,target=/home/myuser/public_html --mount type=bind,source="$(pwd)"/db,target=/var/lib/mysql -e uid=30001 -e user=myuser -e domain=domain.tld -e serveralias=www.domain.tld --name local-dev cac:81 docker run -it --rm -p 80:80 -p 443:443 -e environment=DEV --mount type=bind,source="$(pwd)"/web,target=/home/myuser/public_html --mount type=bind,source="$(pwd)"/db,target=/var/lib/mysql -e uid=30001 -e user=myuser -e domain=domain.tld -e serveralias=www.domain.tld --name local-dev cac:81
``` ```
*This will start the processes needed to run sites locally.*
__If you need to get into the container you can run from another terminal:__
```console
docker exec -it local-dev /bin/bash
```
__To install WordPress for your site__
```console
cat /var/lib/mysql/creds
su - myuser
cd ~/public_html
wp core download
```
You should be able to then go into your browser and go to https://localhost (accept the SSL warning if it appears) and follow the prompts to setup the site.
The database credentials are shown in the /var/lib/mysql/creds file, which we had ```console
cat
``` in the commands above.
### Tags ### ### Tags ###
*74* - PHP 7.4 *74* - PHP 7.4
*80* - PHP 8.0 *80* - PHP 8.0