iugo
V2EX  ›  Ghost

ghost 有三种模式有什么用?

  •  
  •   iugo · Nov 20, 2014 · 7957 views
    This topic created in 4217 days ago, the information mentioned may be changed or developed.
    产品模式和开发模式使用同一个端口, 这两种模式同时产生作用?
    这几种模式有什么区别?

    Production
    Development

    testing
    4 replies    2014-11-20 18:14:29 +08:00
    sanddudu
        1
    sanddudu  
       Nov 20, 2014 via iPhone
    使用同一个端口 ≠ 同时运行

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

    区别我还没有研究过
    iugo
        2
    iugo  
    OP
       Nov 20, 2014
    @sanddudu 在哪里选择目前运行在哪种模式下呢?
    sanddudu
        3
    sanddudu  
       Nov 20, 2014 via iPhone
    @iugo 默认使用 development,你可以在 core/index.js 里修改,或者传入参数(比较麻烦,直接改来的方便)
    hjc4869
        4
    hjc4869  
       Nov 20, 2014
    不同的模式在启动的时候参数不一样,一般用户使用npm start --production即可。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2882 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:01 · PVG 13:01 · LAX 22:01 · JFK 01:01
    ♥ Do have faith in what you're doing.