Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上传文件变成了文件夹 #43

Closed
yolio2003 opened this issue Jul 7, 2015 · 5 comments
Closed

上传文件变成了文件夹 #43

yolio2003 opened this issue Jul 7, 2015 · 5 comments

Comments

@yolio2003
Copy link

抱歉又遇到新的问题:

fis.media('test')
.match('{css/*.css,less/g.less,js/*.js,html/*html,img/**}', {
  deploy: fis.plugin('http-push', {
    receiver: 'somedomain.com/receiver/receiver.php',
    to: '/path/to/project'
  })
})

服务器端的 receiver.php 好像是不是 fis3 的,而是fis之前的版本里用的,这个我没法拿到代码

出现的问题是 html目录下的 index.html 变成了 index.html/ 文件夹
还出现了 index2.htmlindex3.html 这种文件名 ...

@jincdream
Copy link
Contributor

html/*html --> html/*.html 这样试试?

@yolio2003
Copy link
Author

哈哈,多谢@jincdream ,已经晕了低级错误啊,不过 @xiangshouding 还是没成功呢:

fis.match('{css/*.css,less/g.less,js/*.js,html/*.html,img/**}', {
  deploy: fis.plugin('local-deliver', {
    to: './publish'
  })
})

fis
.media('test')
.match('{css/*.css,html/*.html}', {
  deploy: fis.plugin('http-push', {
    receiver: 'somedomain.com/receiver/receiver.php',
    to: '/path/to/project'
  })
})

如上期待css less js html 进入 publish,期待 css html 进入 http-push 上传
实际上 fis3 release test 下面的除了 css html 的文件还是被上传了。
好晕!
fis3 inspect test 的值为:

~ /img/225.mp3                                                                             
-- useHash false `*`   (0th)                                                               
-- deploy [plugin `http-push`] `{css/*.css,less/g.less,js/*.js,html/*.html,img/**}`   (9th)


~ /img/225.ogg                                                                             
-- useHash false `*`   (0th)                                                               
-- deploy [plugin `http-push`] `{css/*.css,less/g.less,js/*.js,html/*.html,img/**}`   (9th)


~ /img/225.wav                                                                             
-- useHash false `*`   (0th)                                                               
-- deploy [plugin `http-push`] `{css/*.css,less/g.less,js/*.js,html/*.html,img/**}`   (9th)

这里我认为 225.mp3 225.ogg 225.wav 是应该只有plugin local-deliver不应该匹配到 `plugin `http-push的呀


fis
.media('test')
.match('{css/*.css,less/g.less,js/*.js,html/*.html,img/**}', {
  deploy: fis.plugin('local-deliver', {
    to: './publish'
  })
})


// .match('{css/*.css,less/g.less,js/*.js,html/*.html,img/**}', {
fis
.media('test')
.match('publish/**', {
  deploy: fis.plugin('http-push', {
    receiver: 'receiver.php',
    to: '/path/to/project'
  })
})

html/index.html,在上传之后变成了 html/index.html/ 文件夹
并且又多出一个 html/index.htmlindex.html的文件

@yolio2003
Copy link
Author

忽略吧,我想可能要自己重新写一个了,因为我们的receiver.php 是有人改过的。。

@2betop
Copy link
Contributor

2betop commented Jul 7, 2015

@yolio2003
Copy link
Author

感谢 搞定了

@yolio2003 yolio2003 reopened this Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants