#!/bin/bash

git clone https://gitlab+deploy-token-1:dzY3LM8b6mmmsZsym_x-@gitlab.tools.digital.opensem.com/root/fgdigital.git $(pwd)
mv /home/laradock/.env ./
mkdir -p bootstrap/cache
chmod -R 777 bootstrap/cache
# mkdir -p storage/framework
# mkdir -p storage/framework/{sessions,views,cache}
composer install
composer update
php artisan cache:clear
php artisan config:clear
php artisan view:clear
php artisan storage:link
php artisan laroute:generate
yarn install
npm run prod
grunt dev
