前言

本项目基于FIS2,没了。其实fis项目本身就提供了php版本的范例,这里翻译成node版本。

项目地址:https://github.com/chyingp/fis-receiver

服务端接收脚本部署

首先,克隆项目

git clone https://github.com/chyingp/fis-receiver.git

跟着,安装依赖

cd fis-receiver/
npm install

然后,启动服务

npm start

配置修改:fis-conf.js

以下内容参考 fis-receiver/examples 的例子

fis-conf.js中加入如下配置。其中:

  • receiver:修改成服务端脚本实际部署的路径。
  • to:修改成项目打算部署到的远程服务器上的路径。
fis.config.merge({
deploy: {
remote: {
receiver: 'http://127.0.0.1:3000/cgi-bin/release', // 接收服务的地址
from: '/',
to: '/tmp/test' // 服务器上部署的的路径
}
}
});

启动远程部署。

fis release -d remote

从打印的日志可以看到项目已经被部署到远程服务器。

 δ 7ms

 Ω ... 35ms
- [22:53:51] css/index.css >> /tmp/test/css/index.css
- [22:53:51] index.html >> /tmp/test/index.html
- [22:53:51] js/index.js >> /tmp/test/js/index.js
- [22:53:51] map.json >> /tmp/test/map.json

打开远程服务器目录,查看部署结果。

cd /tmp/test
test ll

从目录下的内容来看,部署成功。

total 16
drwxr-xr-x 6 a wheel 204 3 3 22:53 .
drwxrwxrwt 13 root wheel 442 3 3 22:56 ..
drwxr-xr-x 3 a wheel 102 3 3 22:53 css
-rw-r--r-- 1 a wheel 82 3 3 22:53 index.html
drwxr-xr-x 3 a wheel 102 3 3 22:53 js
-rw-r--r-- 1 a wheel 233 3 3 22:53 map.json

相关链接

官方部署配置:

http://fex.baidu.com/fis-site/docs/api/fis-conf.html#deploy

fis中自带的php版本的例子

https://github.com/fex-team/fis-command-release/blob/master/tools/receiver.php

最新文章

  1. DOS下windows系统查看wifi密码
  2. HCTF时PHP WAF然有RLFI漏洞
  3. explain mysql的type字段,索引的类型
  4. JVM常见配置汇总
  5. Java中static静态关键字的使用
  6. Infragistics UltraGrid的使用
  7. getHibernateTemplate() 一直报NullPointerException 错误
  8. 同步github工程gitcafe
  9. hive:某张表进行分页
  10. 通俗易懂的vuex-demo
  11. Rsync 常见错误及解决方法
  12. java 中自定义类的概述
  13. linux-openvpn
  14. logstash日志分析的配置和使用(转)
  15. Spring入门学习笔记(4)——JDBC的使用
  16. 课堂作业:alpha发布点评
  17. struts2针对mvc的框架 spring针对解耦与事务的框架
  18. 【转】Spring中事务与aop的先后顺序问题
  19. LeetCode解题报告—— Container With Most Water & 3Sum Closest & Letter Combinations of a Phone Number
  20. SugarCRM如何检查控制器权限?

热门文章

  1. 比较全面的MySQL优化参考(上下篇)
  2. Linux Shell 06 数学运算
  3. Linux Shell 03 条件测试
  4. MyCat 学习笔记 第六篇.数据分片 之 按月数据分片
  5. python strip() lstrip() rstrip() 使用方法
  6. {dockerUI}在服务器上直接安装shipyard/shipyard
  7. C++STL之迭代器2
  8. 【OpenGL】交互式三次 Bezier 曲线
  9. 【温故而知新-Javascript】使用 Window 对象
  10. SAP中主数据和单据的删除