Home
Sign Up
Sign In
›
The Ghost Blog
›
Ghost on Kickstarter
V2EX
›
Ghost
ghost 有三种模式有什么用?
iugo
·
Nov 20, 2014
· 11840 views
This topic created in 4390 days ago, the information mentioned may be changed or developed.
产品模式和开发模式使用同一个端口, 这两种模式同时产生作用?
这几种模式有什么区别?
Production
Development
testing
端口
模式
testing
4 replies
•
2014-11-20 18:14:29 +08:00
sanddudu
Nov 20, 2014 via iPhone
1
使用同一个端口 ≠ 同时运行
这些只是相关环境的名称,配置是相互独立的,运行的时候只能选择一个模式运行
区别我还没有研究过
iugo
OP
Nov 20, 2014
2
@
sanddudu
在哪里选择目前运行在哪种模式下呢?
sanddudu
Nov 20, 2014 via iPhone
3
@
iugo
默认使用 development,你可以在 core/index.js 里修改,或者传入参数(比较麻烦,直接改来的方便)
hjc4869
Nov 20, 2014
4
不同的模式在启动的时候参数不一样,一般用户使用npm start --production即可。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
3784 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms ·
UTC 05:41
·
PVG 13:41
·
LAX 21:41
·
JFK 00:41
♥ Do have faith in what you're doing.
❯