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 callbacks support #12

Closed
dmathieu opened this issue Aug 24, 2010 · 7 comments
Closed

Add callbacks support #12

dmathieu opened this issue Aug 24, 2010 · 7 comments

Comments

@dmathieu
Copy link
Contributor

Hello,

It'd be super cool if we'd be able to add some callbacks to the deployment.
For exemple, I'm using the GitHub Javascript Strategy to bundle my JS and CSS. And I'd really like to do it automatically every time I deploy.

@jqr
Copy link
Owner

jqr commented Aug 26, 2010

What callbacks would you like to see? pre_deploy and maybe a post_deploy?

@dmathieu
Copy link
Contributor Author

Yes I think that would be enough.

@jqr
Copy link
Owner

jqr commented Aug 31, 2010

Just released 0.2.2 which has these callbacks:
rake after_deploy # Callback after deploys
rake before_deploy # Callback before deploys

You can define as many rake tasks as you like to be run as before or after deploy tasks.

@iamnader
Copy link

To use an after_deploy callback should we define the task in our own heroku.rake file like this:
task :my_task => :after_deploy do
...
end

@iamnader
Copy link

Ah, I see that you can just define another :after_deploy task. Thanks.

@dmathieu
Copy link
Contributor Author

Yes. Tasks are just tasks. As long as they are included soon enough, they can be defined in any file you want.

@jqr
Copy link
Owner

jqr commented Sep 16, 2010

Happily accepting documentation patches :)

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

No branches or pull requests

3 participants