fex-team / fis-command-release Goto Github PK
View Code? Open in Web Editor NEWfis release command.
License: MIT License
fis release command.
License: MIT License
以便deploy到服务端的时候, 可以传递注释消息给服务端
旧版本的chokidar在mac下有问题,修改文件有时候会触发两次change事件,可能跟最新版mac系统有关,升级到新版就没有这个问题了,麻烦看一下
rt
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)
到底我哪里出错了
receiver地址是公司的内网,那两个**是文件夹名字,EsportsCenter是一个php项目,receiver.php能访问到
win64, node版本6.4.0
执行fis3 release就报错
fis.match('_', {
deploy: fis.plugin('http-push', {
receiver:'http://192.168.110.233/samba/_*/EsportsCenter/receiver.php',
to:'/dist/'
})
});
报错代码如下:
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)
目前的模式比较容易伤害用户,以为监听功能无法使用。
按照官方给出的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)
如何切换成 https 呢?
https://github.com/fex-team/fis-command-release/blob/master/release.js#L21
您好,我想确认一下opt.srcCache相关的代码是否是多余的。
因为我在编译和部署的代码中均没有看到使用这个东西。
deploy中的代码也还需要优化。
第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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.