-
Notifications
You must be signed in to change notification settings - Fork 19
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
Problem width deploys after update to 2.2.0 #7
Comments
Hi Jamie, Sorry you're having trouble. Can you post some more info, like the output of running;
Feel free to scrub private info or message me directly. |
Running rake -t vlad:update gives the following (sensitive data removed): ssh username@123.45.67.89 'if cd /home/thedomain.com/scm/repo && git rev-parse master && git remote -v | grep -q git@git.domain.com:projects/myproject.git && cd -; then exit 0; else exit 1; fi &>/dev/null' |
A bit more info: ** Invoke vlad:update (first_time) |
I actually have this happening with 2.1.0 now which is very odd as I've been using it for over a year with no problems. The only way to get a new release up there now it to delete revisions.log, scm/* and releases/* before doing a deploy?? Any pointers would be greatly appreciated. |
Hi there, vlad-git version 2.1.0 had a bug where code would be exported before it was updated. Old code would be deployed the first time, but deploying a second time would export the correct code. See https://github.com/jbarnette/vlad-git/issues/closed#issue/3 This is fixed in vlad-git 2.2.0. Try uninstalling all versions of vlad and vlad-git, and then re-installing just the latest versions:
For good measure, delete the /path/to/deploy/scm directory on your remote hosts. Re-deploy once (which will do a full clone). Then make a trivial code change and deploy again. This second deployment should correctly update your code with a fast checkout. Cheers, |
Hi Aaron, Sorry for the slow response, I've had a few rush projects on. I have just tried this and it doesn't deploy the new version. Reverting to vlad-git 2.1.0 however works fine and deploys the changes, here is what I did: On vlad-git 2.2.0rake vlad:deploy No sign of changes on server so add some text to a file.git commit -am "Added some text to a file" Changes not still deployed.gem uninstall vlad-git All deployed fine.Any ideas? Many thanks, Jamie |
Hey Jamie, thanks for the info. I'll try to figure out what's going on. -Aaron |
Hey Jamie, I'm still not able to re-create the bug. I only have easy access to rather new version of git (>1.7). Which version of git are you using? -Aaron |
Hi Aaron, It's git version 1.7.3.2. Jamie |
Same here. After some heavy rewriting/rebasing I did a git push -f www production:master, triggered the deploy and wondered why those changes didn't make it into the running app. Nothing helped but removing ./scm/repo on the host. I have a couple of apps deployed via Vlad and never experienced this before. Local: Git 1.7.4.3, vlad 2.2.0, vlad-git 2.2.0, Ruby 1.9.2-p180 |
Switching back and forth to find a working combination that checks out the latest revision ...
vlad 2.2.0, vlad-git 2.0.0: OK
vlad 2.2.0, vlad-git 2.0.0: nope
vlad 2.2.0, vlad-git 2.2.0: nope
vlad 2.2.0, vlad-git 2.0.0: OK (hm, even though I'm using Bundler, other versions somehow interfere)
vlad 2.2.0, vlad-git 2.0.0: OK (so both Ruby versions work) I guess I'll stick to the last configuration for now. |
This still isn't working for me, any ideas? |
None of us who ran into this problem were able to give a description of how to reliably reproduce this bug, so I guess there is no chance to have it solved in the near future. Anyway, because of the incompatibility to current Rake versions I finally decided to switch to Capistrano and this was one of the best decisions I ever made. It just works. |
Capistrano always seemed a bit bloated to me but if it's the only option I might give it a try. I've tried to track down the bug myself without much luck. |
For the record, if I empty the scm directory between deploy all works. Does this shed any light on things? |
I mentioned that in this ticket as a workaround but it didn't help to identify the source of the problem. |
I suffer from this issue too. I'm using I have git version 1.8.1 installed, and am working on Ubuntu 13.04 When I use vlad-git 2.2.0 and do a rake vlad:update, it doesn't pull through the latest changes. I just switched to vlad-git 2.1.0 and now the changes come through when I rake vlad:update. |
Just want to bump/confirm that this is still a problem.
|
After updating to 2.2.0 deploys no longer update app to latest code in repository. I have reverted to 2.1.0 for now as the only way to resolve is to manually clear the scm directory on the server that you are deploying to.
Any ideas?
Kind regards,
Jamie
The text was updated successfully, but these errors were encountered: