From 4cc48ec9543fce4f62eff31e2f5df036785e7a42 Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios <20590102+rodber@users.noreply.github.com> Date: Fri, 28 Jul 2023 13:42:19 -0400 Subject: [PATCH] update dev --- docs/DEV.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/DEV.md diff --git a/docs/DEV.md b/docs/DEV.md new file mode 100644 index 0000000..dde84f1 --- /dev/null +++ b/docs/DEV.md @@ -0,0 +1,33 @@ +# Dev + +To develop Chevereto we implement this workflow: + +* Create dev image +* Start containers +* Run filesystem watcher + +## Create dev image + +Dev image is required once and for every change on `Dockerfile`. It is an image without the actual application files (source code). + +Run the following command to create the dev image. + +```sh +make image-custom TARGET=dev PHP=8.2 +``` + +## Start containers + +Run the following command to run docker compose on the Chevereto containers. + +```sh +make up-d NAMESPACE=dev +``` + +## Run filesystem watcher + +Run the following command to live update changes (made on local) to the running containers. + +```sh +make run SCRIPT=observe NAMESPACE=dev SOURCE=~/git/chevereto/v4 +```