Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
code
Public Stack Site
Commits
a8ae2a7d
Commit
a8ae2a7d
authored
Aug 07, 2020
by
alain
🐙
Browse files
docker debug..
parent
25eecc39
Changes
4
Hide whitespace changes
Inline
Side-by-side
.dockerignore
0 → 100644
View file @
a8ae2a7d
**/node_modules
\ No newline at end of file
backend/api/util/services/Util.js
View file @
a8ae2a7d
...
...
@@ -2,15 +2,15 @@ module.exports = {
build
:
()
=>
{
const
{
exec
}
=
require
(
'
child_process
'
);
exec
(
'
cd ../frontend &&
gatsby
build
'
,
(
error
,
stdout
,
stderr
)
=>
{
exec
(
'
cd ../frontend &&
yarn
build
'
,
(
error
,
stdout
,
stderr
)
=>
{
if
(
error
)
{
console
.
error
(
`exec error:
${
error
}
`
);
console
.
error
(
`stderr:
${
stderr
}
`
);
return
;
}
console
.
log
(
`stdout:
${
stdout
}
`
);
console
.
error
(
`stderr:
${
stderr
}
`
);
});
return
'
koek
'
;
},
};
\ No newline at end of file
backend/package.json
View file @
a8ae2a7d
...
...
@@ -6,7 +6,7 @@
"scripts"
:
{
"develop"
:
"NODE_ENV=development strapi develop"
,
"start"
:
"NODE_ENV=production strapi start"
,
"build"
:
"strapi build"
,
"build"
:
"
NODE_ENV=production
strapi build"
,
"strapi"
:
"strapi"
},
"devDependencies"
:
{},
...
...
backend/util/util.js
deleted
100644 → 0
View file @
25eecc39
export
const
buildGatsbySite
=
()
=>
{
const
{
exec
}
=
require
(
'
child_process
'
);
exec
(
'
cd ../frontend && yarn build
'
,
(
error
,
stdout
,
stderr
)
=>
{
if
(
error
)
{
console
.
error
(
`exec error:
${
error
}
`
);
console
.
error
(
`stderr:
${
stderr
}
`
);
return
;
}
console
.
log
(
`stdout:
${
stdout
}
`
);
console
.
error
(
`stderr:
${
stderr
}
`
);
});
}
\ No newline at end of file
Write
Preview
Supports
Markdown
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