mirror of
https://github.com/strapi/strapi.git
synced 2025-08-24 16:49:28 +00:00
Use debug option instead of verbose
This commit is contained in:
parent
83e0ffd323
commit
8c9f77a615
@ -29,7 +29,7 @@ cd /path/to/the/project
|
||||
npm run setup
|
||||
```
|
||||
|
||||
> Note: To display the build logs use the --verbose option `npm run setup --verbose`.
|
||||
> Note: To display the build logs use the --debug option `npm run setup --debug`.
|
||||
|
||||
#### #3 - Launch the server
|
||||
|
||||
|
@ -10,7 +10,7 @@ shell.echo('📦 Installing packages...');
|
||||
|
||||
const pwd = shell.pwd();
|
||||
|
||||
const silent = !(process.env.npm_config_verbose === 'true');
|
||||
const silent = process.env.npm_config_debug !== 'true';
|
||||
const isDevelopmentMode = path.resolve(pwd.stdout).indexOf('strapi-admin') !== -1;
|
||||
const appPath = isDevelopmentMode ? path.resolve(process.env.PWD, '..') : path.resolve(pwd.stdout, '..');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user