Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/strapi/node_modules/strapi-generate-new/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: 'use strict';
const execa = require('execa');
const { trackUsage, captureStderr } = require('./utils/usage');
const defaultConfigs = require('./utils/db-configs.js');
const clientDependencies = require('./utils/db-client-dependencies.js');
const createProject = require('./create-project');
module.exports = async function createQuickStartProject(scope) {
console.log('Creating a quickstart project.');
await trackUsage({ event: 'didChooseQuickstart', scope });
// get default sqlite config
const client = 'sqlite';
const configuration = {
client,
connection: defaultConfigs[client],
dependencies: clientDependencies({ scope, client }),
};
await createProject(scope, configuration);
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.`);
try {
await trackUsage({ event: 'willStartServer', scope });
await execa('npm', ['run', 'develop'], {
stdio: 'inherit',
cwd: scope.rootPath,
env: {
FORCE_COLOR: 1,
},
});
} catch (error) {
await trackUsage({
event: 'didNotStartServer',
scope,
error,
});
await captureStderr('didNotStartServer', error);
process.exit(1);
}
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]-- |