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]
解决方案
推荐阅读
- excel - 保护工作表 VBA
- javascript - JMeter 警告:计划从未来的 JDK 版本中删除 Nashorn 引擎
- c# - c#visual studio 总结
- php - PHP将数组传递给Rscript
- c# - 调用多个 WebAPI - ASP.Net MVC
- ruby-on-rails - 具有多个的嵌套资源路由表单 - 关联的自动链接
- python - 如何在python中创建数据库文件
- abap - 为什么在添加 DAYLIGHT SAVING TIME 时 CONVERT DATE 会因 sy-subrc 12 而失败?
- java - Web UI 自动化测试适用于桌面 Chrome,但可以在 Android Chrome 中找到元素
- vue.js - 如何在 Vue JS 上过滤 $emit