mirror of
https://github.com/strapi/strapi.git
synced 2025-08-14 03:34:53 +00:00
Merge pull request #11986 from strapi/fix/serve-admin
Remove build from install script
This commit is contained in:
commit
d9b540aaed
@ -24,29 +24,6 @@ module.exports = async function createQuickStartProject(scope) {
|
|||||||
|
|
||||||
if (scope.runQuickstartApp !== true) return;
|
if (scope.runQuickstartApp !== true) return;
|
||||||
|
|
||||||
try {
|
|
||||||
await trackUsage({ event: 'willBuildAdmin', scope });
|
|
||||||
|
|
||||||
await execa('npm', ['run', 'build', '--', '--no-optimization'], {
|
|
||||||
stdio: 'inherit',
|
|
||||||
cwd: scope.rootPath,
|
|
||||||
env: {
|
|
||||||
FORCE_COLOR: 1,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
await trackUsage({ event: 'didBuildAdmin', scope });
|
|
||||||
} catch (error) {
|
|
||||||
await trackUsage({
|
|
||||||
event: 'didNotBuildAdmin',
|
|
||||||
scope,
|
|
||||||
error,
|
|
||||||
});
|
|
||||||
|
|
||||||
await captureStderr('didNotBuildAdmin', error);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`Running your Strapi application.`);
|
console.log(`Running your Strapi application.`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user