Commit 0a0a1bfe authored by 郭志伟's avatar 郭志伟

build(server.js): 启动命令修改

parent a504ebda
...@@ -9,6 +9,7 @@ npm.load(() => { ...@@ -9,6 +9,7 @@ npm.load(() => {
appId: 'quantum-blocks', appId: 'quantum-blocks',
configPath: path.resolve(__dirname, '../config'), configPath: path.resolve(__dirname, '../config'),
}).then(() => { }).then(() => {
npm.run("build");
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
npm.run("start"); npm.run("start");
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment