You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the serversideup/docker-php image to run a Laravel app that uses stancl/tenancy for multi-tenant database support.
The default automation script (entrypoint.d/50-laravel-automations.sh) runs central migrations via php artisan migrate --force and then proceeds to cache config, routes, views, etc. (link to script).
However, Laravel Tenancy also requires tenant-specific migrations via:
php artisan tenants:migrate --force
Question
Is there an officially supported or recommended way for inserting additional artisan commands — specifically tenants:migrate — before caching takes place?
Should i disable automations, duplicate the entire (entrypoint.d/50-laravel-automations.sh) and run artisan tenants:migrate in that file?
Feature Suggestion
It would be awesome if the image supported additional artisan commands through an environment variable like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the serversideup/docker-php image to run a Laravel app that uses
stancl/tenancy
for multi-tenant database support.The default automation script (entrypoint.d/50-laravel-automations.sh) runs central migrations via
php artisan migrate --force
and then proceeds to cache config, routes, views, etc. (link to script).However, Laravel Tenancy also requires tenant-specific migrations via:
Question
Is there an officially supported or recommended way for inserting additional artisan commands — specifically tenants:migrate — before caching takes place?
Should i disable automations, duplicate the entire (entrypoint.d/50-laravel-automations.sh) and run
artisan tenants:migrate
in that file?Feature Suggestion
It would be awesome if the image supported additional artisan commands through an environment variable like:
…which could be executed right after the main
migrate --force
step and before caching starts.This would allow tenancy and other similar packages to hook into the automation cleanly.
Beta Was this translation helpful? Give feedback.
All reactions