Fixing logging and changing post deploy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matt Burchett 2021-04-07 00:14:46 -07:00
parent 29d937b95b
commit a127dcb0b9
2 changed files with 7 additions and 6 deletions

View File

@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use App\Models\Ships; use App\Models\Ships;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Illuminate\Http\Request; use Illuminate\Http\Request;

View File

@ -14,15 +14,15 @@ if [[ ! -f /data/database.sqlite ]]; then
touch /data/database.sqlite touch /data/database.sqlite
fi fi
if [[ ! -f /data/.env ]]; then
echo "No enviroment found. Creating."
cp .env.example /data/.env
fi
if [[ ! -f ./.env ]]; then if [[ ! -f ./.env ]]; then
echo "No link to environment. Linking environment." echo "No link to environment. Linking environment."
ln -s /data/.env ./.env ln -s /data/.env ./.env
php artisan key:generate fi
if [[ ! -f /data/.env ]]; then
echo "No enviroment found. Creating."
cp .env.example /data/.env
php artisan key:generate --force
fi fi
php artisan migrate php artisan migrate