# Cap deploy:migrations doesn't run deploy:after\_update

**URL:** <https://www.ruby-forum.com/t/cap-deploy-migrations-doesnt-run-deploy-after-update/145990>\
**Category:** Deployment\
**Created:** [August 15, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/cap-deploy-migrations-doesnt-run-deploy-after-update/145990 "2008-08-15T21:48:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miken700](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@miken700](https://www.ruby-forum.com/u/miken700)\
**Post date:** [August 15, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/cap-deploy-migrations-doesnt-run-deploy-after-update/145990/1 "2008-08-15T21:48:38Z")

</div>

Does anybody else have the problem that running “cap deploy:migrations”  
doesn’t run “deploy:after\_update”, but “cap deploy” does?

I have after\_update it make some symlinks to the shared directory and  
set some permission. Am I using it wrong?

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![miken700](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@miken700](https://www.ruby-forum.com/u/miken700)\
**Post date:** [August 16, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/cap-deploy-migrations-doesnt-run-deploy-after-update/145990/2 "2008-08-16T17:06:34Z")

</div>

Mike,

```
I think (haven't checked the code) deploy:migrations doesn't

```

update the code. Then after\_update should not be triggered… If there  
is no new release folder, a new symlinks should not be required, also  
you could use:

after “deploy:symlink”, “whatevertask”

Best regards,

–  
Aníbal Rojas

> **[Home - Has Many Developers](https://hasmanydevelopers.com/)**
>
> We are the best choice for your building design and development

> **[RUBYCORNER.COM](https://www.rubycorner.com/)**
>
> RUBYCORNER.COM - Contact us for any business inquiries

[http://anibal.rojas.com.ve](http://anibal.rojas.com.ve)

On Aug 16, 2:48 pm, Mike Nicholaides \<ruby-forum-incom…@andreas-

---

<div class="post-metadata">

**Author:** ![miken700](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@miken700](https://www.ruby-forum.com/u/miken700)\
**Post date:** [August 19, 2008, 7:35am UTC](https://www.ruby-forum.com/t/cap-deploy-migrations-doesnt-run-deploy-after-update/145990/3 "2008-08-19T07:35:54Z")

</div>

Actually, these are what “cap deploy:migrations” runs:  
deploy:migrations  
deploy:update\_code  
deploy:finalize\_update  
deploy:migrate  
deploy:symlink  
deploy:restart

This is from looking at the output when I run it.
