Fixing logging and changing post deploy
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
29d937b95b
commit
a127dcb0b9
@ -4,6 +4,7 @@ namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Ships;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
|
@ -14,15 +14,15 @@ if [[ ! -f /data/database.sqlite ]]; then
|
||||
touch /data/database.sqlite
|
||||
fi
|
||||
|
||||
if [[ ! -f /data/.env ]]; then
|
||||
echo "No enviroment found. Creating."
|
||||
cp .env.example /data/.env
|
||||
fi
|
||||
|
||||
if [[ ! -f ./.env ]]; then
|
||||
echo "No link to environment. Linking environment."
|
||||
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
|
||||
|
||||
php artisan migrate
|
||||
|
Loading…
Reference in New Issue
Block a user