toby/setup
Adrian Hopek 5cb46d2fc4
#60 - fix avatars (#61)
* #60 - wip

* #60 - wip

* #60 - fix

Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
2022-02-23 11:11:53 +01:00

15 lines
552 B
Bash

#!/bin/bash
if [ ! -f ".env" ]; then
cp .env.example .env
fi
docker-compose build --no-cache --pull
docker-compose up -d
docker-compose run --rm -u "$(id -u):$(id -g)" php composer install
docker-compose run --rm -u "$(id -u):$(id -g)" php php artisan key:generate
docker-compose run --rm -u "$(id -u):$(id -g)" php php artisan storage:link
docker-compose run --rm -u "$(id -u):$(id -g)" php php artisan migrate --seed
docker-compose run --rm -u "$(id -u):$(id -g)" node npm install
docker-compose run --rm -u "$(id -u):$(id -g)" node npm run dev