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

Split local code update into sub tasks #20

Open
nnevala opened this issue Oct 20, 2012 · 4 comments
Open

Split local code update into sub tasks #20

nnevala opened this issue Oct 20, 2012 · 4 comments
Assignees

Comments

@nnevala
Copy link

nnevala commented Oct 20, 2012

I'd love to see the deploy:update_code task split into sub tasks so that it would be possible to hook into the rsync process locally.

This would allow me to run dependency manager on the local copy before syncing the copy with remote servers.

@follmann
Copy link

+1 I also need to generate some files locally from the local cached copy before rsyncing it to the server. I might start work on a pull request...

@reagent
Copy link
Contributor

reagent commented Oct 17, 2014

I'm not sure what my options are here -- the relevant part from deploy:update_code:

  task :update_code, :except => { :no_release => true } do
    on_rollback { run "rm -rf #{release_path}; true" }
    strategy.deploy!
    finalize_update
  end

It's possible that I could add a configuration setting that is a command to run within the actual deploy! call. What specifically are you guys trying to do?

@reagent
Copy link
Contributor

reagent commented Oct 21, 2014

@nnevala @follmann -- I'll close this out at the end of the week if I don't hear from you guys. It's been a while since this was submitted, so you may have changed your deployment and rendered this irrelevant. Sorry for the delay.

@reagent reagent self-assigned this Oct 21, 2014
@gthank
Copy link

gthank commented Mar 30, 2018

This seems like it might be relevant to what I want, which is essentially build_script from the copy strategy. I'd like to run a git secret reveal step in between the local cache update and running the rsync. I'm just trying to find the right place to wire this 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

4 participants