Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
4cd9893d
Commit
4cd9893d
authored
May 19, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(apollo): 语法调整
parent
78b72dbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
server.js
bin/server.js
+17
-11
No files found.
bin/server.js
View file @
4cd9893d
...
...
@@ -4,16 +4,22 @@ const apollo = require('@qg/apollo-nodejs');
"
use strict
"
;
const
npm
=
require
(
"
npm
"
);
npm
.
load
(()
=>
{
await
apollo
.
load
({
appId
:
'
quantum-blocks
'
,
configPath
:
path
.
resolve
(
__dirname
,
'
../config
'
),
(
async
function
()
{
npm
.
load
(()
=>
{
try
{
await
apollo
.
load
({
appId
:
'
quantum-blocks
'
,
configPath
:
path
.
resolve
(
__dirname
,
'
../config
'
),
});
}
catch
(
error
)
{
console
.
log
(
error
);
}
if
(
process
.
env
.
NODE_ENV
===
'
production
'
)
{
npm
.
run
(
"
start
"
);
}
else
{
npm
.
run
(
"
test
"
);
}
});
if
(
process
.
env
.
NODE_ENV
===
'
production
'
)
{
npm
.
run
(
"
start
"
);
}
else
{
npm
.
run
(
"
test
"
);
}
});
})();
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment