1
0
Fork 0
mirror of https://github.com/archtechx/tenancy-queue-tester.git synced 2025-12-12 06:44:05 +00:00

start redis -> up redis

This commit is contained in:
Samuel Štancl 2024-12-31 07:12:03 +01:00
parent 4f70ebc8fb
commit 8bca2252da

View file

@ -69,7 +69,7 @@ dispatch_tenant_job() {
rm -f src/database.sqlite rm -f src/database.sqlite
rm -f src/database/tenantfoo.sqlite rm -f src/database/tenantfoo.sqlite
docker compose start redis # in case it's not running - the below setup code needs Redis to be running docker compose up -d redis # in case it's not running - the below setup code needs Redis to be running
docker compose run --rm queue php artisan migrate:fresh >/dev/null docker compose run --rm queue php artisan migrate:fresh >/dev/null
docker compose run --rm queue php artisan tinker -v --execute "App\\Models\\Tenant::create(['id' => 'foo', 'tenancy_db_name' => 'tenantfoo.sqlite']);" docker compose run --rm queue php artisan tinker -v --execute "App\\Models\\Tenant::create(['id' => 'foo', 'tenancy_db_name' => 'tenantfoo.sqlite']);"