Mis a jour le README

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2020-03-13 11:06:14 +01:00
parent cb86a97955
commit 5c05e32c2c
No known key found for this signature in database
GPG Key ID: B143FF27EF555D16

View File

@ -7,27 +7,61 @@
- [jenoh: Théo MEMIN](https://github.com/jenoh) - [jenoh: Théo MEMIN](https://github.com/jenoh)
- [s0dyy: Maxime SORIN](https://github.com/s0dyy) - [s0dyy: Maxime SORIN](https://github.com/s0dyy)
# Requirements : # Requirements :
- GIT LFS
- GIT LFS (Optionnal)
- a terminal
## Install ## Install
### Dev ### Dev
``` ```bash
cp ./.env.example ./.env #then edit the file to match your config
docker-compose build docker-compose build
cp ./.env.example ./.env
docker-compose run php composer install docker-compose run php composer install
docker-compose run php php artisan key:generate docker-compose run php php artisan key:generate
docker-compose up docker-compose up
``` ```
after that run [migrations](#migrations)
Finnally run the seeders [seeders](#seeders)
### Prod ### Prod
``` ```bash
cp ./env.example ./env cp ./env.example ./env #then edit the file to match your config
docker-compose build docker-compose build
docker-compose run -f docker-compose.yml -f docker-compose.prod.yml php php artisan key:generate docker-compose run -f docker-compose.yml -f docker-compose.prod.yml php php artisan key:generate
docker-compose up -f docker-compose.yml -f docker-compose.prod.yml docker-compose up -f docker-compose.yml -f docker-compose.prod.yml
``` ```
after that run [migrations](#migrations)
## Migrations
to run migration do
on linux/mac
```bash
./artprox migrate
```
on windows
```bash
docker-compose exec php php artisan migrate
```
## Seeders
to run seeders do
on linux/mac
```
./artprox db:seed --class=CreateUsersSeeder
```
on windows
```
docker-compose exec php php artisan db:seed --class=CreateUsersSeeder
```