CA_LARAVEL/README.md
Florian Bouillon 5c05e32c2c
Mis a jour le README
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
2020-03-13 11:06:14 +01:00

1.3 KiB
Executable File

Pouet

Maintainers

Requirements :

  • GIT LFS (Optionnal)
  • a terminal

Install

Dev

cp ./.env.example ./.env #then edit the file to match your config
docker-compose build
docker-compose run php composer install
docker-compose run php php artisan key:generate
docker-compose up

after that run migrations
Finnally run the seeders seeders

Prod

cp ./env.example ./env #then edit the file to match your config
docker-compose build
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

after that run migrations

Migrations

to run migration do

on linux/mac

./artprox migrate

on windows

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