在代码飞船中找不到文件或目录

时间:2019-07-15 09:33:38

标签: deployment codeship

我有自己的服务器(可通过SSH访问),我也想部署我的项目。我正在使用Codeship通过Git自动执行此过程。这是我在[参考](https://documentation.codeship.com/basic/continuous-deployment/deployment-with-ftp-sftp-scp/#continuous-deployment-with-rsync)的代码中使用的自定义脚本! :

我已经阅读了文档,它告诉您将波浪号放在项目的开头。但是由于某种原因,它不起作用。

echo "Deploying"
rsync -avz -e "ssh" ~/mywebsite.co.uk/ 
debian@myserver:/srv/mywebsite.co.uk/
echo "Deployed"

rsync -avz -e "ssh" ~/mywebsite.co.uk/ 
debian@myserver:/srv/mywebsite.co.uk/
00:01
Warning: Permanently added 'myserver' (ECDSA) to the list of 
known hosts.

00:01
sending incremental file list
00:01
rsync: change_dir "/home/rof/mywebsite.co.uk" failed: No 
such file or directory (2)
00:01

00:01
sent 20 bytes  received 12 bytes  21.33 bytes/sec
00:01
total size is 0  speedup is 0.00
00:01
rsync error: some files/attrs were not transferred (see previous 
errors) (code 23) at main.c(1196) [sender=3.1.2]

1 个答案:

答案 0 :(得分:0)

ssh debug session是解决这种情况的理想选择。如果您对此方法有任何疑问或疑虑,请联系CodeShip help desk