Commit a8ae2a7d authored by alain's avatar alain 🐙
Browse files

docker debug..

parent 25eecc39
**/node_modules
\ No newline at end of file
......@@ -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
......@@ -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": {},
......
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
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