Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change to git style deploy

  • Loading branch information...
commit a4afea2b4bbb524292134a910a250353d6ae4c40 1 parent 7352cd4
@7hunderbird 7hunderbird authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 config/eydeploy.rb
View
27 config/eydeploy.rb
@@ -0,0 +1,27 @@
+# This is an overrides file for ey deploy that uses git to do all
+# moving around, rather than using multiple directories and symlinks
+
+class ::EY::Serverside::Deploy::Configuration
+ # no separate releases directories
+ def release_path(*args)
+ current_path
+ end
+
+ def all_releases(*args)
+ [current_path]
+ end
+end
+
+def copy_repository_cache
+ # Don't need to do this, just make sure current is linked to
+ # cached-copy
+ run "ln -nfs #{c.repository_cache} #{c.current_path}"
+end
+
+def symlink(*args)
+ # do nothing
+end
+
+def cleanup_old_releases(*args)
+ # do nothing
+end

5 comments on commit a4afea2

@jimneath

What's the reasoning behind this? As far as I can tell it breaks the deployment?

@martinemde
Owner

This doesn't look like it was run before committing. I would be very curious to hear if this worked on any deployment.

@7hunderbird

This comes verbatim from:

https://support.cloud.engineyard.com/entries/20996661-customize-your-deployment-on-engine-yard-cloud#first

But it was an accidental commit to the engineyard repo when I meant to commit it to my repo. Jim already removed it so we're good, thanks Jim!

@martinemde
Owner

We should probably remove that from the docs. That's not good advice :(

Please sign in to comment.
Something went wrong with that request. Please try again.