Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post-build hook compatibility #19

Open
patricknelson opened this issue Jul 24, 2023 · 0 comments
Open

Add post-build hook compatibility #19

patricknelson opened this issue Jul 24, 2023 · 0 comments

Comments

@patricknelson
Copy link
Owner

patricknelson commented Jul 24, 2023

For SS v4, add ability for devs to hook into dev/build to execute migrations. Use onAfterBuild extension hook circa SS v4+, c.f. https://github.com/silverstripe/silverstripe-framework/blob/4.11/src/ORM/DatabaseAdmin.php#L406

Ensure that this can be enabled or disabled via YAML config. Document that you can enable on a per-environment basis (e.g. enabled for prod but not local dev) using SilverStripe's built-in environment or envorconstant (and etc) YAML exclusionary rules, per: https://docs.silverstripe.org/en/5/developer_guides/configuration/configuration/

environment, in which case the value(s) should be one of "live", "test" or "dev" to indicate the Silverstripe CMS mode the site must be in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant