iugo
V2EX  ›  Ghost

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

  •  
  •   iugo · Nov 18, 2014 · 12283 views
    This topic created in 4373 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
    mkeith
    Nov 18, 2014
    1
    走node.js的路由吗?
    iugo
    iugo
    OP
    Nov 18, 2014
    2
    @mkeith 目前是 Debian 7 下 node.js, Nginx 反代. 我对 Ghost 的结构还不太懂, 之前也没接触过 node.js .
    bitwing
    bitwing
    Nov 18, 2014
    3
    静态资源直接交给 Nginx 处理不就好了吗
    iugo
    iugo
    OP
    Dec 14, 2014
    4
    找到这个文件了.

    /core/server/middleware/index.js

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