Permalink
Browse files

change to git style deploy

  • Loading branch information...
1 parent 7352cd4 commit a4afea2b4bbb524292134a910a250353d6ae4c40 @7hunderbird 7hunderbird committed Feb 15, 2013
Showing with 27 additions and 0 deletions.
  1. +27 −0 config/eydeploy.rb
View
@@ -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
Contributor

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

@martinemde

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

@7hunderbird
Contributor

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

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

@7hunderbird
Contributor

K I've added this doc ticket. https://tickets.engineyard.com/issue/DOC-860

Please sign in to comment.