Improvements to SQLite dev setup

This commit is contained in:
Darko Gjorgjijoski
2024-07-28 21:02:49 +02:00
parent c4ade42a8f
commit 17082ea8c8
2 changed files with 6 additions and 2 deletions

View File

@@ -32,9 +32,9 @@ services:
ADMINER_PLUGINS: tables-filter ADMINER_PLUGINS: tables-filter
ADMINER_DESIGN: konya ADMINER_DESIGN: konya
volumes: volumes:
- ../database/database.sqlite:/database.sqlite - ../database:/database
ports: ports:
- '54320:8080' - '8080:8080'
networks: networks:
- invoiceshelf-dev - invoiceshelf-dev

View File

@@ -18,6 +18,10 @@ if [ ! -d vendor ]; then
composer install composer install
fi fi
if [ ! -f database/database.sqlite ]; then
cp database/stubs/sqlite.empty.db database/database.sqlite
fi
if [ ! -f .env ]; then if [ ! -f .env ]; then
cp .env.example .env cp .env.example .env
php artisan key:generate --force php artisan key:generate --force