Travis构建与nodejs en自定义ftp [英] Travis build with nodejs en custom ftp

查看:326
本文介绍了Travis构建与nodejs en自定义ftp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用travis CI与nodejs和我面临这样的问题。

I m trying to use travis CI with nodejs and I m facing a problem like this one.

我想在这里,只是使用ftp上传我的

What I want here, is only to use ftp to upload my file, not to run any command.

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

我不知道是什么问题实际上...这是我的travis.yml文件: p>

I dont know what is the problem actually... Here's my travis.yml file :

env:
  global:
    - "FTP_USER=xxx"
    - "FTP_PASSWORD=xxx"
after_success:
    "curl --ftp-create-dirs -T uploadfilename -u $FTP_USER:$FTP_PASSWORD ftp://xxxx.fr/www/mochatest"

我做错了什么?

推荐答案

当我决定使用Travis-CI与HTML + JS应用程序时,我面临类似的情况。我终于最终从我的package.json文件通过posttest部分进行部署。我写了一些代码,它使用ftp-deploy npm模块来上传文件。测试存储库此处

I faced similar scenario when I decided to use Travis-CI with HTML+JS app. I finally ended up deployment from my package.json file via "posttest" section. I wrote some code which uses ftp-deploy npm module to upload the files. Test repository here.

这篇关于Travis构建与nodejs en自定义ftp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆