-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Issue #1: Fix handling of default options #2
base: master
Are you sure you want to change the base?
Conversation
Thank for your troubleshooting this further! I'll take a look at it ASAP! Perhaps something had changed since Capistrano's prerelease that I didn't test properly. Looking at Capistrano's |
@moll The bug appear only if you deploy in a complete cold env. No current, release, shared folder etc. |
@poxrud I believe this pull request works because as per the README, However |
Just to add, I have success in setting up default settings in my capistrano tasks (lib/capistrano/tasks/*.cap) by simply enhancing the For example, inside my_task.cap
I believe it works on the same principles here. |
@seantan Yes you are correct it works if you put the line However the README mentions:
Which is incorrect. Putting it right at the top of Capfile or inside |
I guess it is a matter of preference. My preference is to go with Take for example, https://github.com/capistrano/bundler/blob/master/lib/capistrano/tasks/bundler.cap I agree with you the README needs to be fixed. |
@seantan agreed, the defaults should go into the defaults task. The README should also be updated accordingly. Hopefully the changes will be merged into master soon. |
I've done a similar PR in #13 that uses the now-supported |
@moll Don't mind me nagging... is there any chance we can get the fixes pulled into master soon? We're already getting 3 similar PRs that fixes the same show-stopper problem reported 4 months ago. Can the gem get some love? :) |
@STRML @moll Can we use PS: Also I think it will be better to use |
@moll another reminder to please merge the fixes. I use capistrano-rsync to deploy my wordpress sites and would like to to recommend this workflow to my colleagues. However I cannot do so until this gem is fixed. |
@poxrud: Thank you for poking me! I will get to this eventually! It's just that Capistrano was not a good piece of software when I built this and I've since moved on — hence the delay. How do you use Capistrano to deploy Wordpress sites, if I may ask? Is it the best tool for that? :) @aganov: I'll have to see what Seems to me, what you're after, is to pass two arguments to Rsync: |
@moll I'm not sure if it's the best tool for wordpress deployment but it's a great tool. I keep my wordpress sites in a local git repo, and then when I want to deploy it's just a simple
I keep the common files/directories such as wp-config.php, wp-content, nginx.conf inside the shared directory, with symlinks inside the current directory. Works great! |
並列にrsyncするように修正
Hi,
i think i found the bug. The handling of default options is wrong. Because of the order the options are loaded rsync.rb overwrites all options that are already defined. Look at https://github.com/capistrano/capistrano/blob/master/lib/capistrano/setup.rb
Whats why :rsync_options is always en empty array and the rsync command in :rsync will fail.
Please note i am not a ruby developer and this is completely wrong.