Skip to content
Snippets Groups Projects
Unverified Commit 1dc50209 authored by Matteo Parrucci's avatar Matteo Parrucci Committed by GitHub
Browse files

Update README.md

parent 41656079
No related branches found
No related tags found
No related merge requests found
......@@ -10,11 +10,12 @@ Also set the codedir variable that tells docker where your source folder are
Pull frontend code with `git clone https://github.com/LibrePhotos/librephotos-frontend.git ${codedir}/frontend/`
Pull backend code into `git clone https://github.com/LibrePhotos/librephotos.git ${codedir}/backend/`
Pull this repo and run
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
This will build images from scratch (can take a long time)
Pull this repo and run `docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d`
This will build images from scratch (can take a long time the first time)
Now you can develop and benefit from code auto reload from both backend and frontend
N.B. If you already built this image once, when you do changes you have to run
N.B. If you already built this image once, when you do force rebuild you have to run
`docker-compose -f docker-compose.yml -f docker-compose.dev.yml build --no-cache frontend`
......@@ -22,5 +23,7 @@ N.B. If you already built this image once, when you do changes you have to run
based on which one you changed if these changes need rebuild as for added dependencies/libraries etc.
If you use vscode you can benefit auto completion and other goodies. For this just type `code .` in your dockerfile folder.
and then the usual `docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d`
If you use vscode you can also benefit auto completion and other goodies. For this just type `code .` in your dockerfile folder.
Vscode will open and ask you if you want to reopen it in the container. If you do it he will add his server to the docker layers (first time you do it can take a couple of minutes) and you will have the same python interpreter librephotos is using internally hence the same installed libraries in auto completion and the same development environment will be shared by all devs (isort, flake8 and pylint for example)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment