Chris Holowatyj

Chris Holowatyj

Closed

It is really frustrating to me that there isn't a feature to run a set of scripts (similar to the way deploy scripts are handled) AFTER a successful deployment has finished. Here's one example (of many I could give) as to why this is sorely needed:

Every time I deploy my Laravel sites I have to run php artisan storage:link (just as one example), because after a few deployments it usually gets unlinked somehow... obviously this is the kind of thing that should be run after a successful deployment (especially because of ZTD) so that the link can be set on the new folder instead of the old one...

There are a couple other examples... like one for example, I'm currently trying to debug one of my sites where the local development instance runs perfectly but the production one does not... I'd love to be able to run pnpm build:prod in a set of scripts that runs after a successful deployment so that it rebuilds the project assets with the production ENV file in place (instead of relying on the assets built in local development using the local ENV file contents)...

Dennis

Dennis

·
·

This is not something we're going to implement for now. However, the fix for your storage is rather easy:

php artisan storage:link --force

no votes yet
You may use @ to mention someone.

Ability to run script AFTER successful deployment using ZTD

1 total vote
Chris Holowatyj
  • Dennis moved item to board Closed

    10 months ago
  • Chris Holowatyj moved item to project Site Level Requests

    1 year ago
  • Chris Holowatyj created the item

    1 year ago