From 955c7565e09d0ee889251191e38b965b5427e1d2 Mon Sep 17 00:00:00 2001 From: Joel Clermont Date: Wed, 12 Jun 2024 16:25:16 -0500 Subject: [PATCH] pr fixes --- README_TEMPLATE.md | 2 +- docker-compose.yml | 6 ++---- vite.config.js | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README_TEMPLATE.md b/README_TEMPLATE.md index e79786e..36bc587 100644 --- a/README_TEMPLATE.md +++ b/README_TEMPLATE.md @@ -59,7 +59,7 @@ Once `mkcert` is installed, we need to generate our local development root certi Then, generate the certificates for this project and put them into a location accessible to your docker setup: -`mkcert -cert-file docker/nginx/ssl.pem -key-file docker/nginx/key.pem my-project.local` +`mkcert -cert-file docker/vite/ssl.pem -key-file docker/vite/key.pem my-project.test` ### Node environment The best option to ensure you're using the correct versions of Node and npm with this project is to install [Volta](https://volta.sh). diff --git a/docker-compose.yml b/docker-compose.yml index b2eb426..b1599d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,8 +22,7 @@ services: image: mysql:8.0.37 volumes: - mysql-data:/var/lib/mysql - # Uncomment the next line if you need scripts to run on mysql initialization, like creating multiple databases - # - ./docker/mysql/init:/docker-entrypoint-initdb.d + - ./docker/mysql/init:/docker-entrypoint-initdb.d environment: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: app # update .env and .env.example if you change any of these values @@ -42,8 +41,7 @@ services: image: mysql:8.0.37 volumes: - mysql-test-data:/var/lib/mysql - # Uncomment the next line if you need scripts to run on mysql initialization, like creating multiple databases - # - ./docker/mysql/init:/docker-entrypoint-initdb.d + - ./docker/mysql/init:/docker-entrypoint-initdb.d environment: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: apptest # update phpunit.xml if you change any of these values diff --git a/vite.config.js b/vite.config.js index 8b80956..ed780b4 100644 --- a/vite.config.js +++ b/vite.config.js @@ -32,7 +32,7 @@ export default defineConfig(({ mode }) => { cert: readFileSync("docker/vite/ssl.pem"), }, hmr: { - host: "project.domain", + host: "my-project.test", }, }; }