Coder Social home page Coder Social logo

上传文件变成了文件夹 about fis3 HOT 5 CLOSED

yolio2003 avatar yolio2003 commented on May 30, 2024
上传文件变成了文件夹

from fis3.

Comments (5)

jincdream avatar jincdream commented on May 30, 2024

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

from fis3.

yolio2003 avatar yolio2003 commented on May 30, 2024

哈哈,多谢@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的文件

from fis3.

yolio2003 avatar yolio2003 commented on May 30, 2024

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

from fis3.

2betop avatar 2betop commented on May 30, 2024

试试这个: https://github.com/fex-team/fis3-deploy-http-push/blob/master/receiver.php

from fis3.

yolio2003 avatar yolio2003 commented on May 30, 2024

感谢 搞定了

from fis3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.