热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

'rsync'errorwhenrunningcommandonwindows

ImtryingtodeployasmallnodejssitetoaanUbuntuserverthatsonmylocalnetwor

I'm trying to deploy a small nodejs site to a an Ubuntu server that's on my local network.

So far i've made a simple test that's suppose to deploy a website to my server but i get this error:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Branch merged.

Finished 'deploy:fetch' after 3.52 s



Running 'deploy:update' task...

Create release path "/var/www/shipit-test/releases/20150203204754"

Running "mkdir -p /var/www/shipit-test/releases/20150203204754" on host "192.168.1.200".

administrator.168.1.200's password:

Release path created.

Copy project to remote servers.

Remote copy "C:/Developer/shipit-test/deploy/" to "administrator.168.1.200:/var/www/shipit-test/releases/20150203204754"

.168.1.200-err 'rsync' is not recognized as an internal or external command,



.168.1.200-err operable program or batch file.

'deploy:update' errored after 11 s

Error: Command failed: 'rsync' is not recognized as an internal or external command, operable program or batch file.



at ChildProcess.exithandler (child_process.js:637:15)

at ChildProcess.EventEmitter.emit (events.js:98:17)

at maybeClose (child_process.js:743:16)

at Process.ChildProcess._handle.onexit (child_process.js:810:5)

My

1
shipitfile.js

looks like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = function (shipit) {

  require('shipit-deploy')(shipit);



  shipit.initConfig({

    default: {

      workspace: 'C:/Developer/shipit-test/deploy',

      deployTo: '/var/www/shipit-test',

      repositoryUrl: 'https://github.com/boedlen/privat-repo.git',

      ignores: ['.git', 'node_modules'],

      keepReleases: 2,

      shallowClone: true

    },

    staging: {

      servers: 'deploy.168.1.200'

    }

  });

};

My server is an Ubuntu Server, and my computer is a Windows 8 - 64bit, is this a windows related issue?

该提问来源于开源项目:shipitjs/shipit

Agreed with - You should figure out if




1
rsync

is on path, if not, if

1
scp

could do the job and even if not; acknowledge the user.





   



推荐阅读
  • 本文记录了在vue cli 3.x中移除console的一些采坑经验,通过使用uglifyjs-webpack-plugin插件,在vue.config.js中进行相关配置,包括设置minimizer、UglifyJsPlugin和compress等参数,最终成功移除了console。同时,还包括了一些可能出现的报错情况和解决方法。 ... [详细]
  • 本文讨论了clone的fork与pthread_create创建线程的不同之处。进程是一个指令执行流及其执行环境,其执行环境是一个系统资源的集合。在调用系统调用fork创建一个进程时,子进程只是完全复制父进程的资源,这样得到的子进程独立于父进程,具有良好的并发性。但是二者之间的通讯需要通过专门的通讯机制,另外通过fork创建子进程系统开销很大。因此,在某些情况下,使用clone或pthread_create创建线程可能更加高效。 ... [详细]
  • PatchODAX8: ... [详细]
  • x86 linux的进程调度,x86体系结构下Linux2.6.26的进程调度和切换
    进程调度相关数据结构task_structtask_struct是进程在内核中对应的数据结构,它标识了进程的状态等各项信息。其中有一项thread_struct结构的 ... [详细]
  • 湍流|低频_youcans 的 OpenCV 例程 200 篇106. 退化图像的逆滤波
    篇首语:本文由编程笔记#小编为大家整理,主要介绍了youcans的OpenCV例程200篇106.退化图像的逆滤波相关的知识,希望对你有一定的参考价值。 ... [详细]
  • python3连接外部Mysql
    前提条件,已经安装过MySQL(比如说以前web开发安装过MySQL)1.安装PyMySQLpipinstallPyMySQL2.测试1i ... [详细]
  • 本文介绍了九度OnlineJudge中的1002题目“Grading”的解决方法。该题目要求设计一个公平的评分过程,将每个考题分配给3个独立的专家,如果他们的评分不一致,则需要请一位裁判做出最终决定。文章详细描述了评分规则,并给出了解决该问题的程序。 ... [详细]
  • 本文介绍了使用PHP实现断点续传乱序合并文件的方法和源码。由于网络原因,文件需要分割成多个部分发送,因此无法按顺序接收。文章中提供了merge2.php的源码,通过使用shuffle函数打乱文件读取顺序,实现了乱序合并文件的功能。同时,还介绍了filesize、glob、unlink、fopen等相关函数的使用。阅读本文可以了解如何使用PHP实现断点续传乱序合并文件的具体步骤。 ... [详细]
  • flowable工作流 流程变量_信也科技工作流平台的技术实践
    1背景随着公司业务发展及内部业务流程诉求的增长,目前信息化系统不能够很好满足期望,主要体现如下:目前OA流程引擎无法满足企业特定业务流程需求,且移动端体 ... [详细]
  • React项目中运用React技巧解决实际问题的总结
    本文总结了在React项目中如何运用React技巧解决一些实际问题,包括取消请求和页面卸载的关联,利用useEffect和AbortController等技术实现请求的取消。文章中的代码是简化后的例子,但思想是相通的。 ... [详细]
  • Spring常用注解(绝对经典),全靠这份Java知识点PDF大全
    本文介绍了Spring常用注解和注入bean的注解,包括@Bean、@Autowired、@Inject等,同时提供了一个Java知识点PDF大全的资源链接。其中详细介绍了ColorFactoryBean的使用,以及@Autowired和@Inject的区别和用法。此外,还提到了@Required属性的配置和使用。 ... [详细]
  • SpringMVC接收请求参数的方式总结
    本文总结了在SpringMVC开发中处理控制器参数的各种方式,包括处理使用@RequestParam注解的参数、MultipartFile类型参数和Simple类型参数的RequestParamMethodArgumentResolver,处理@RequestBody注解的参数的RequestResponseBodyMethodProcessor,以及PathVariableMapMethodArgumentResol等子类。 ... [详细]
  • 本文介绍了200个经典c语言源代码,包括函数的使用,如sqrt函数、clanguagefunct等。这些源代码可以帮助读者更好地理解c语言的编程方法,并提供了实际应用的示例。 ... [详细]
  • #define_CRT_SECURE_NO_WARNINGS#includelist.h#includevoidSListInit(PNode*pHead ... [详细]
  • 先记住几个专用名词,如下:Workspace:工作区IndexStage:暂存区Repository:仓库区(或本地仓库)Remote:远程仓库一、新建代码库#在当前目录新建一个G ... [详细]
author-avatar
用户3w7mnpewca
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有