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

Blue/Green only works when web app is top application in manifest #5

Open
brjennin opened this issue Jun 11, 2015 · 1 comment
Open

Comments

@brjennin
Copy link

Our manifest has a "command runner" application that gets deployed first to run migrations followed by deploying our web application.

Our command runner has no route and is not Blue/Green deployed - there is only one instance of it. Our web server is setup for B/G deploys.

It seems like this gem's B/G deploy route flipping only works if the first application in the manifest is the web application with a route. This may not always be the case (as in our situation). It would be great if it could search the manifest for any application with a color in its name and a route and flip those routes.

@lukemorton
Copy link
Contributor

Instead of using a command runner app you can just use rake tasks:

require 'cf-deploy'

CF::Deploy.rake_tasks! do
  environment staging: 'assets:precompile'
  environment production: 'assets:precompile'
end

Now when running rake cf:deploy:staging or rake cf:deploy:production the assets:precompile task will be run before hand.

Is there any reason you cannot do this?

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

2 participants