fex-team / fis-command-release

fis release command.
MIT License
35 stars 89 forks source link

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

Open w2230030100 opened 9 years ago

w2230030100 commented 9 years ago
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)

到底我哪里出错了

oxUnd commented 9 years ago
w2230030100 commented 9 years ago

@xiangshouding 设置了读写了 有目录 还是不行

bogon:kelepc ningfujun$ fisp release -d remote

 Ω ................................................................ 111ms
/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)
oxUnd commented 9 years ago

/kelepc/fis/www 在这个目录下执行 pwd 命令,让我看看

oxUnd commented 9 years ago

如果这些都 OK,请检查磁盘 /tmp 目录下是否满了,具体做法请咨询 Google

w2230030100 commented 9 years ago

话说pwd命令是干啥的 我打了个这个您看是这样么

/Users/ningfujun/work/Dakele/kelepc/fis/www
bogon:www ningfujun$ pwd
/Users/ningfujun/work/Dakele/kelepc/fis/www
bogon:www ningfujun$ pwd -p
-bash: pwd: -p: invalid option
pwd: usage: pwd [-LP]
bogon:www ningfujun$ pwd -l
-bash: pwd: -l: invalid option
pwd: usage: pwd [-LP]
bogon:www ningfujun$ pwd -L
/Users/ningfujun/work/Dakele/kelepc/fis/www
bogon:www ningfujun$ pwd -P
/Users/ningfujun/work/Dakele/kelepc/fis/www
bogon:www ningfujun$ pwd -LP
/Users/ningfujun/work/Dakele/kelepc/fis/www
bogon:www ningfujun$ 
w2230030100 commented 9 years ago

image

oxUnd commented 9 years ago

/Users/ningfujun/work/Dakele/kelepc/fis/www 写相对于系统根目录的地址

w2230030100 commented 9 years ago

@xiangshouding 谢谢大神 能传上去了 但是怎么自动化打包啊 就是类似fis的那种针对单页面进行1个css和1个js的那种 我看教程有个自动化的链接是这个http://solar.baidu.com/autopack/doc 但是打不开

oxUnd commented 9 years ago

@w2230030100 fisp 里面的合并打包看这个地方

http://oak.baidu.com/fis-plus/document.html#%25E6%2589%2593%25E5%258C%2585%25E5%2590%2588%25E5%25B9%25B6

w2230030100 commented 9 years ago

@xiangshouding 不提供自动打包吗

oxUnd commented 9 years ago

@w2230030100 自动打包还未开源,像 fis-postpackager-simple 插件一样的静态式合并不适合后端模板项目。

w2230030100 commented 9 years ago

@xiangshouding jello支持单页面的自动打包吗 我看jello貌似说支持 但是我试验了下貌似没效果 是不是跟fis+一样也是没有开源的

w2230030100 commented 9 years ago

image 而且我发现教程这一块是写错了吗 是不是应该是/template