【问题标题】:Can't find file or directory in codeship在 codeship 中找不到文件或目录
【发布时间】:2019-07-16 02:47:03
【问题描述】:

我有自己的服务器,可以通过 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]

【问题讨论】:

    标签: deployment codeship


    【解决方案1】:

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

    【讨论】:

    • 鼓励链接到外部资源,但请在链接周围添加上下文,以便您的其他用户了解它是什么以及为什么存在。始终引用重要链接中最相关的部分,以防目标站点无法访问或永久离线
    猜你喜欢
    • 1970-01-01
    • 2021-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-10
    • 2020-02-25
    • 2018-11-03
    相关资源
    最近更新 更多