-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
deploy fails with relative :deploy_to #48
Comments
this might be bug in sshkit ... I will try to investigate some time later as you got an easy workaround |
@mpapis Ok, thank you. Anyway, I created this issue more to help others who can stumble upon such behavior and to have a place to post a workaround. But it would be great to have it fixed. =) |
revert to the old version to fix the issue. |
@Glacier3 can you provide more details? reverted to old version of |
Revert rvm1-capistrano3 to 1.2.2 can fix this issue. When I using the latest 1.3.2.2, there is an issue will happen. cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as root@aliyun: scp: ~/gjt-site/rvm1scripts/rvm-auto.sh: No such file or directory scp: ~/gjt-site/rvm1scripts/rvm-auto.sh: No such file or directory |
@Glacier3 the old version uses one cache |
@mpapis You are right. It sshkit's bug. After I change the deploy_to path from "~/gjt-site" to absolute path "/root/gjt-site". The issue disappeared. I notice that rvm1-capistrano3 is using sshkit 1.2, do you have any plan to upgrade it? Maybe higher version has already fixed this bug. |
the gemspec says: spec.add_dependency 'sshkit', '>=1.2' so if you could test with newer version => https://github.com/capistrano/sshkit/releases I would be glad to update the requirement or merge your Pull Request with it. |
@mpapis After I did some research and testing, finally I found it's a bug from the net-scp gem. There is a people also encountering such problem, net-ssh/net-scp#9. So, for now, the home folder type ~ maybe is not a good way. |
hmm, does it work with |
$HOME is not working. It works in this way, task :set_up_deploy_path do before 'rvm1:hook', 'set_up_deploy_path'` |
then maybe it's worth adding a descriptive warning instead of letting it fail? |
I think if our gem can automatically convert '~' to user home folder path is much better. Do you think so? |
it would be nice, but the trick with capture works only with one server, it's a lot easier to print a warning then to try to detect server configuration, and still in case of more then one server we need to print the warning |
+1 |
Hi.
1.2.6
understands relative paths well, but new1.3.2.2
fails ondeploy:check
Somewhere in deployment configuration:
full path (
/home/someuserhere/rvm1cap3test
) works just great.The text was updated successfully, but these errors were encountered: