V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iugo
V2EX  ›  Ghost

ghost 有三种模式有什么用?

  •  
  •   iugo · 2014-11-20 12:16:31 +08:00 · 4321 次点击
    这是一个创建于 3416 天前的主题,其中的信息可能已经有所发展或是发生改变。
    产品模式和开发模式使用同一个端口, 这两种模式同时产生作用?
    这几种模式有什么区别?

    Production
    Development

    testing
    4 条回复    2014-11-20 18:14:29 +08:00
    sanddudu
        1
    sanddudu  
       2014-11-20 12:19:14 +08:00 via iPhone
    使用同一个端口 ≠ 同时运行

    这些只是相关环境的名称,配置是相互独立的,运行的时候只能选择一个模式运行

    区别我还没有研究过
    iugo
        2
    iugo  
    OP
       2014-11-20 15:56:03 +08:00
    @sanddudu 在哪里选择目前运行在哪种模式下呢?
    sanddudu
        3
    sanddudu  
       2014-11-20 18:13:17 +08:00 via iPhone
    @iugo 默认使用 development,你可以在 core/index.js 里修改,或者传入参数(比较麻烦,直接改来的方便)
    hjc4869
        4
    hjc4869  
       2014-11-20 18:14:29 +08:00
    不同的模式在启动的时候参数不一样,一般用户使用npm start --production即可。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1589 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:58 · PVG 00:58 · LAX 09:58 · JFK 12:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.