mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Increase log verbosity when starting or updating the app.
This commit is contained in:
parent
ec9751a886
commit
ed70e81687
8
run.js
8
run.js
|
|
@ -16,11 +16,11 @@ if (missingModules.client || missingModules.server) {
|
||||||
process.stdout.write('Installing node modules...');
|
process.stdout.write('Installing node modules...');
|
||||||
|
|
||||||
if (missingModules.client) {
|
if (missingModules.client) {
|
||||||
childProcess.execSync('npm install', { cwd: clientPath, stdio: 'ignore' });
|
childProcess.execSync('npm install', { cwd: clientPath, silent: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (missingModules.server) {
|
if (missingModules.server) {
|
||||||
childProcess.execSync('npm install', { cwd: serverPath, stdio: 'ignore' });
|
childProcess.execSync('npm install', { cwd: serverPath, silent: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
process.stdout.write(' done\n');
|
process.stdout.write(' done\n');
|
||||||
|
|
@ -52,7 +52,7 @@ if (!fs.existsSync(envFile)) {
|
||||||
|
|
||||||
if (!fs.existsSync(path.resolve(clientPath, 'dist/main.html'))) {
|
if (!fs.existsSync(path.resolve(clientPath, 'dist/main.html'))) {
|
||||||
process.stdout.write('Building client app...');
|
process.stdout.write('Building client app...');
|
||||||
childProcess.execSync('npm run build', { cwd: clientPath, stdio: 'ignore' });
|
childProcess.execSync('npm run build', { cwd: clientPath, silent: true });
|
||||||
process.stdout.write(' done\n');
|
process.stdout.write(' done\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -63,7 +63,7 @@ if (process.env.DB_DIALECT === 'sqlite') {
|
||||||
|
|
||||||
if (!fs.existsSync(dbFile)) {
|
if (!fs.existsSync(dbFile)) {
|
||||||
process.stdout.write(`Creating SQLITE database at ${dbFile}...`);
|
process.stdout.write(`Creating SQLITE database at ${dbFile}...`);
|
||||||
childProcess.execSync('npm run migrate', { cwd: serverPath, stdio: 'ignore' });
|
childProcess.execSync('npm run migrate', { cwd: serverPath, silent: true });
|
||||||
process.stdout.write(' done\n');
|
process.stdout.write(' done\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
14
update.js
14
update.js
|
|
@ -7,22 +7,22 @@ const clientPath = path.resolve(__dirname, 'client');
|
||||||
const serverPath = path.resolve(__dirname, 'server');
|
const serverPath = path.resolve(__dirname, 'server');
|
||||||
|
|
||||||
process.stdout.write('Pulling new version from github...');
|
process.stdout.write('Pulling new version from github...');
|
||||||
childProcess.execSync('git pull', { stdio: 'ignore' });
|
childProcess.execSync('git pull', { silent: true });
|
||||||
process.stdout.write(' done\n');
|
process.stdout.write(' done\n');
|
||||||
|
|
||||||
process.stdout.write('Updating node modules...');
|
process.stdout.write('Updating node modules...');
|
||||||
childProcess.execSync('npm install', { cwd: clientPath, stdio: 'ignore' });
|
childProcess.execSync('npm install', { cwd: clientPath, silent: true });
|
||||||
childProcess.execSync('npm prune', { cwd: clientPath, stdio: 'ignore' });
|
childProcess.execSync('npm prune', { cwd: clientPath, silent: true });
|
||||||
childProcess.execSync('npm install', { cwd: serverPath, stdio: 'ignore' });
|
childProcess.execSync('npm install', { cwd: serverPath, silent: true });
|
||||||
childProcess.execSync('npm prune', { cwd: serverPath, stdio: 'ignore' });
|
childProcess.execSync('npm prune', { cwd: serverPath, silent: true });
|
||||||
process.stdout.write(' done\n');
|
process.stdout.write(' done\n');
|
||||||
|
|
||||||
process.stdout.write('Migrating database...');
|
process.stdout.write('Migrating database...');
|
||||||
childProcess.execSync('npm run migrate', { cwd: serverPath, stdio: 'ignore' });
|
childProcess.execSync('npm run migrate', { cwd: serverPath, silent: true });
|
||||||
process.stdout.write(' done\n');
|
process.stdout.write(' done\n');
|
||||||
|
|
||||||
process.stdout.write('Building client app...');
|
process.stdout.write('Building client app...');
|
||||||
childProcess.execSync('npm run build', { cwd: clientPath, stdio: 'ignore' });
|
childProcess.execSync('npm run build', { cwd: clientPath, silent: true });
|
||||||
process.stdout.write(' done\n');
|
process.stdout.write(' done\n');
|
||||||
|
|
||||||
process.stdout.write('Please restart Rdio Scanner\n')
|
process.stdout.write('Please restart Rdio Scanner\n')
|
||||||
Loading…
Reference in a new issue