Git Product home page Git Product logo

fis-command-release's People

Contributors

2betop avatar fouber avatar hefangshi avatar oxund avatar qdsang avatar ssddi456 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fis-command-release's Issues

增加 --msg

以便deploy到服务端的时候, 可以传递注释消息给服务端

我将receiver.php文件放到了我本地的一个服务器上 然后上传 出现了如下错误 该咋办

bogon:kelepc ningfujun$ fisp release -d remote

 Ω ................................................................ 118ms
/usr/local/lib/node_modules/fis-plus/node_modules/fis/node_modules/fis-kernel/lib/log.js:63
        throw err
              ^
Error: upload file [/page/layout.tpl] to [/kelepc/fis/www] by receiver [http://127.0.0.1/fisr/fis-command-release/tools/receiver.php] error [1]
    at Object.exports.error (/usr/local/lib/node_modules/fis-plus/node_modules/fis/node_modules/fis-kernel/lib/log.js:57:15)
    at /usr/local/lib/node_modules/fis-plus/node_modules/fis/node_modules/fis-deploy-default/index.js:76:25
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/fis-plus/node_modules/fis/node_modules/fis-kernel/lib/util.js:835:21)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

到底我哪里出错了

提交到远端服务器报错了

报错代码如下:
events.js:141
throw er; // Unhandled 'error' event
^

Error: read ECONNRESET
at exports._errnoException (util.js:874:11)
at TCP.onread (net.js:544:26)

fis2上传文件到服务器死活上传不了

按照官方给出的receiver.php代码,copy到服务器端,使用fis release -cmpd test 结果出现以下情况:
/usr/local/lib/node_modules/fis/node_modules/fis-kernel/lib/log.js:63
throw err
^

Error: upload file [/build.sh] to [/home/xiaoju/webroot/bus-webapp] by receiver [http://10.94.96.212:9099/receiver.php] error [1]
at Object.exports.error (/usr/local/lib/node_modules/fis/node_modules/fis-kernel/lib/log.js:57:15)
at /usr/local/lib/node_modules/fis/node_modules/fis-deploy-default/index.js:76:25
at IncomingMessage. (/usr/local/lib/node_modules/fis/node_modules/fis-kernel/lib/util.js:836:21)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at doNTCallback2 (node.js:450:9)
at process._tickCallback (node.js:364:17)

多次读取项目配置的文本文件会造成crash

第86行 这里是不是要转成字符串呢,因为 fis.util.toEncoding() 返回的是 Buffer对象,而这片代码是在 file.isText() 分支下的。

遇到过在新机器上部署 fis ,有些文本文件是被 fis 多次读取的,一个文本文件的 content 一旦被设置为 Buffer 对象后,下次读取可能会假设其为 String 而直接调用 replace 方法最终 crash。

/usr/local/lib/node_modules/fis/node_modules/fis-command-release/lib/deploy.js:65
                content = content.replace(reg, dest.replace.to);
                                  ^
TypeError: Object <?
$this->display("activity_head/activity_head.php");
?>
 has no method 'replace'
    at prepareDeploy (/usr/local/lib/node_modules/fis/node_modules/fis-command-release/lib/deploy.js:65:35)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.