iugo
V2EX  ›  Ghost

如何往 Ghost 根目录添加文件?

  •  
  •   iugo · Nov 18, 2014 · 7768 views
    This topic created in 4194 days ago, the information mentioned may be changed or developed.
    目前我只知道放在 assets 目录下可以访问. 但是不是根目录.

    在 Ghost 中在哪儿控制 URL 呢?

    比如添加一个 abc.txt 到根目录 domain.com/abc.txt
    6 replies    2015-10-17 13:57:16 +08:00
    mkeith
        1
    mkeith  
       Nov 18, 2014
    走node.js的路由吗?
    iugo
        2
    iugo  
    OP
       Nov 18, 2014
    @mkeith 目前是 Debian 7 下 node.js, Nginx 反代. 我对 Ghost 的结构还不太懂, 之前也没接触过 node.js .
    bitwing
        3
    bitwing  
       Nov 18, 2014
    静态资源直接交给 Nginx 处理不就好了吗
    iugo
        4
    iugo  
    OP
       Dec 14, 2014
    找到这个文件了.

    /core/server/middleware/index.js

    ServeSharedFile Middleware
    vsill
        5
    vsill  
       Aug 28, 2015
    问下楼主就是我找到这个文件然后呢
    arfaWong
        6
    arfaWong  
       Oct 17, 2015
    @iugo 找到这个文件然后怎么处理?
    @vsill 你解决了吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3303 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 12:33 · PVG 20:33 · LAX 05:33 · JFK 08:33
    ♥ Do have faith in what you're doing.