From 8097584d6b12993f6a29e52b9441c5d8121446cc Mon Sep 17 00:00:00 2001 From: Alexandre Date: Fri, 6 Dec 2024 11:25:25 +0100 Subject: [PATCH] feat: change thelia version + small fixes (typos) --- docs/getting_started/Installation.md | 6 +++--- docs/getting_started/docker.md | 15 +++++++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/docs/getting_started/Installation.md b/docs/getting_started/Installation.md index 6e335009..2fbcc1d4 100644 --- a/docs/getting_started/Installation.md +++ b/docs/getting_started/Installation.md @@ -15,10 +15,10 @@ If you want to use **docker** please follow [this](./docker) way. ### Download the project -Rename `YourPorject` with the name of your project. Be aware of the version you want to install (here `2.5.4`) : +Rename `YourProject` with the name of your project. Be aware of the version you want to install (here `2.5.4`) : ```bash -composer create-project thelia/thelia-project YourProject 2.5.4 +composer create-project thelia/thelia-project YourProject 2.5.5 ``` You can say `yes` for the recipes. @@ -124,7 +124,7 @@ yarn build Clear the cache to ensure all changes are applied. ```bash -rm -rf ./cache +rm -rf ./var/cache php Thelia assets:install web ``` diff --git a/docs/getting_started/docker.md b/docs/getting_started/docker.md index b8992e9c..d1bfafd1 100644 --- a/docs/getting_started/docker.md +++ b/docs/getting_started/docker.md @@ -3,9 +3,9 @@ title: Dockerize your Thelia sidebar_position: 6 --- -A docker configuration is provided in the repository of Thelia. It uses docker-compose. +A docker configuration is provided in the repository of Thelia. It uses docker compose. -It requires obviously [docker](https://docker.com/) and [docker-compose](http://docs.docker.com/compose/) +It requires obviously [docker](https://docker.com/) and [docker compose](http://docs.docker.com/compose/) ## Get the project @@ -21,6 +21,13 @@ You can download the archive from official [releases pages](https://github.com/t > ⚠️ **Important** : First, copy and paste content from file `.env.docker` to `.env` file. Change default values if needed, but default values should work. You should overrides default values with a `.env.local` file. +> Then, add the following line to your `.env` file : +> ``` +> MYSQL_DATABASE=thelia +> MYSQL_ROOT_PASSWORD=root +> MYSQL_USER=thelia +> MYSQL_PASSWORD=thelia +> ``` Then execute this command from the root path of the project : @@ -36,7 +43,7 @@ Your website should be accessible here, but not yet installed : [http://localhos To be able to run PHP command, you first need to execute this if you need : ``` -docker-compose exec php-fpm bash +docker compose exec php-fpm bash ``` You will be inside the php docker container. From here, you have to follow the classic installation process of Thelia ( cf: [installation page](/docs/getting_started/Installation) ) @@ -90,4 +97,4 @@ docker compose down --remove-orphans All the configuration can be customize for your own project. It uses the official [php image](https://hub.docker.com/_/php/) provided by docker so you can change the php version as you want. You can also install all the extension you want. -Each time you modify the configuration, you have to rebuild the containers : ```docker-composer build --no-cache``` \ No newline at end of file +Each time you modify the configuration, you have to rebuild the containers : ```docker composer build --no-cache``` \ No newline at end of file