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
fdbed14b
Commit
fdbed14b
authored
May 19, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(server): 调试apollo
parent
4cd9893d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
.gitignore
.gitignore
+1
-0
server.js
bin/server.js
+6
-13
No files found.
.gitignore
View file @
fdbed14b
...
...
@@ -17,6 +17,7 @@ app/**/*.js
config/plugin.local.js
config/plugin.js
config/config.*.js
config/apollo.json
index.js
config/manifest.json
app/view/*
...
...
bin/server.js
View file @
fdbed14b
...
...
@@ -4,22 +4,15 @@ const apollo = require('@qg/apollo-nodejs');
"
use strict
"
;
const
npm
=
require
(
"
npm
"
);
(
async
function
()
{
npm
.
load
(()
=>
{
try
{
await
apollo
.
load
({
npm
.
load
(()
=>
{
apollo
.
load
({
appId
:
'
quantum-blocks
'
,
configPath
:
path
.
resolve
(
__dirname
,
'
../config
'
),
});
}
catch
(
error
)
{
console
.
log
(
error
);
}
}).
then
(()
=>
{
if
(
process
.
env
.
NODE_ENV
===
'
production
'
)
{
npm
.
run
(
"
start
"
);
}
else
{
npm
.
run
(
"
test
"
);
}
});
})();
\ No newline at end of file
});
\ 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