首页 > 解决方案 > 在 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]

标签: deploymentcodeship

解决方案


ssh 调试会话是解决此方案的理想选择。如果您对此方法有任何问题或疑虑,请联系 CodeShip帮助台。


推荐阅读