Commit 17851a74 authored by Florent Chehab's avatar Florent Chehab

Fixes #72

parent c87bb441
......@@ -5,12 +5,11 @@ Set-up
## `Git`
*If you don't have `git` install on your computer, look online and install it 😜.
*If you don't have `git` install on your computer, look online and install it 😜.*
Then, you can simply clone the project repository:
```bash
git clone git@gitlab.utc.fr:rex-dri/rex-dri.git && cd rex-dri
```
......@@ -21,7 +20,7 @@ git clone git@gitlab.utc.fr:rex-dri/rex-dri.git && cd rex-dri
## `docker` and `docker-compose`
This projects takes advantage of `docker` and `docker-compose` to ease the install process, continuous integration, deployments, etc.
This projects takes advantage of `docker` and `docker-compose` to ease the setup process, continuous integration, deployments, etc.
......@@ -31,6 +30,8 @@ This projects takes advantage of `docker` and `docker-compose` to ease the insta
- [`docker`](https://docs.docker.com/install/)
- [`docker-compose`](https://docs.docker.com/compose/install/)
*To run `Docker` your user needs to belong to the `docker` user-group (creating during the install process) or to `sudo` all `docker`-related commands. The last solution is a bit annoying when devlopping, so you can add your user to the `docker` group: `sudo usermod -aG docker your-user`. You can find what is your use with the command `whoami`. **The change will take effect after you restart your computer (or close your session and reopen it)**.*
Once this is done, don't forget that you need to have docker running before using `docker-compose`. For example, on `Fedora 29` you need to run the following command:
......@@ -47,6 +48,7 @@ Finally you can start-up all `docker` related *stuff* using the command:
make up--build
```
**When you lunch the project for the first time you'll most likely have the backend container crash due to the lack of some static files. Make sure not to stop the lunch process until you see `frontend_1 | ℹ 「wdm」: Compiled successfully` in the console. Then you can stop the command (`CTRL+C`) and do `make up`; you shouldn't have issues thereafter.**
You can look at the `Makefile` to have more information on that last command and the other ones that are available.
......@@ -62,7 +64,7 @@ To initialize the database associated with the project, you need to connect to t
```bash
make shell_bakend
make shell_backend
```
......@@ -88,13 +90,6 @@ Then:
_NB: this last command should be run everytime you migrate (modify/add) some models._
- _Collectez_ les éléments statiques:
```bash
./manage.py collectstatic
```
When this is done you can exit the `docker` image shell (`CTRL + D`).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment