use "push" with sub_directory #3709
-
Can somebody explain me what I am doing wrong here? I want to pull a subdirectory from my repository (later in CI) and for this I have set
set('repository', 'https://github.com/user/repo.git');
set('sub_directory', 'laravel'); // <--- pull only laravel dir
set('application', 'app');
set('deploy_path', '~/{{application}}'); cd repo/laravel && vendor/bin/dep push # <--- executing from repo/laravel
task push
[IP] info uploading:
[IP] - laravel/composer.json
[IP] - laravel/composer.lock
[IP] error in push.php on line 16:
[IP] run rsync '-azP' '--relative' '-e' 'ssh '\''-A'\'' '\''-o'\'' '\''ControlMaster=auto'\'' '\''-o'\'' '\''ControlPersist=60'\'' '\''-o'\'' '\''ControlPath=~/.ssh/deployer@IP'\''' 'laravel/composer.json' 'laravel/composer.lock' 'deployer@IP:~/app/current'
[IP] err rsync: link_stat "/ABSOLUTE_PATH/app/laravel/laravel/composer.json" failed: No such file or directory (2)
[IP] err rsync: link_stat "/ABSOLUTE_PATH/app/laravel/laravel/composer.lock" failed: No such file or directory (2)
[IP] err rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/810eba08-405a-11ed-86e9-6af958a02716/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
[IP] building file list ...
[IP] 0 files to consider
[IP] sent 29 bytes received 20 bytes 98.00 bytes/sec
[IP] total size is 0 speedup is 0.00
[IP] exit code 23 (Unknown error) It seems to me that rsync wants to upload a non existent path because it prefixed twice |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I went into |
Beta Was this translation helpful? Give feedback.
I went into
push
command and understood that it just uploads the git diff. To conclude, I first had to pull the repo on remote.