fex-team / fis3

FIS3
http://fis.baidu.com
BSD 2-Clause "Simplified" License
2.79k stars 694 forks source link

fis3 本地启动一个服务,发布代码到本地一个位置报错。 #699

Open souse opened 8 years ago

souse commented 8 years ago

文件夹权限已经分配

配置文件

.match('/page/**.html',{ deploy: fis.plugin('http-push', { receiver: 'http://192.168.1.38:4000/receiver.php', to: '/page' })
})

报错信息

/usr/local/lib/node_modules/fis3/node_modules/fis3-deploy-http-push/index.js:54 throw new Error(error); ^

Error: upload file [/page/header/header.html] to [/Users/drank/Downloads/server/page] by receiver [http://192.168.1.38:4000/receiver.php] error [404] at /usr/local/lib/node_modules/fis3/node_modules/fis3-deploy-http-push/index.js:54:19 at /usr/local/lib/node_modules/fis3/node_modules/fis3-deploy-http-push/index.js:15:9 at IncomingMessage. (/usr/local/lib/node_modules/fis3/lib/util.js:1246:11) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12) at doNTCallback2 (node.js:441:9) at process._tickCallback (node.js:355:17)

oxUnd commented 8 years ago

按照文档部署好服务器接收端

确保能浏览器能访问!

souse commented 8 years ago

@xiangshouding 浏览器能访问到, 权限也设置了 还是报错。

Baiang commented 8 years ago

http-push在本地运行时候就挂了,检查下fis3或http-push的版本支持

kekobin commented 7 years ago

请问这个最后解决了么?我也遇到了同样的问题