26 lines
831 B
Bash
Executable File
26 lines
831 B
Bash
Executable File
#! /bin/bash
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
function clean() {
|
|
docker-compose -f firefly-compose.yml rm
|
|
docker rm -f $(docker ps -a | grep firefly | awk '{print $NF}') 2> /dev/null
|
|
}
|
|
trap clean EXIT
|
|
|
|
docker-compose -f firefly-compose.yml up -d
|
|
sleep 20
|
|
docker-compose -f firefly-compose.yml exec firefly_iii_app php artisan migrate --seed
|
|
sleep 5
|
|
docker-compose -f firefly-compose.yml exec firefly_iii_app php artisan firefly:upgrade-database
|
|
sleep 5
|
|
docker-compose -f firefly-compose.yml exec firefly_iii_app php artisan firefly:verify
|
|
sleep 5
|
|
docker-compose -f firefly-compose.yml exec firefly_iii_app php artisan passport:install
|
|
sleep 5
|
|
docker-compose -f firefly-compose.yml exec firefly_iii_app php artisan cache:clear
|
|
sleep 5
|
|
|
|
docker logs --follow $(docker ps -a | grep firefly | head -n 1 | awk '{print $NF}')
|
|
|