Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
success: function returnSuccess() {
logger.info('Migration file successfully generated at `' + path.resolve(scope.rootPath, 'data', 'migrations', scope.connection) + '`.');
logger.info('Seed file created at `' + path.resolve(scope.rootPath, 'data', 'seeds', scope.connection) + '`.');
logger.warn('This migration has been automatically generated.');
logger.warn('We strongly advise you to manually verify those information.');
process.exit(0);
}
});
logger.error('Please check read/write permissions before execute `$ strapi config`');
logger.error('You can manually create the file at `' + HOME + '`');
} else {
logger.info('Global configuration file successfully created at `' + HOME + '`');
logger.info('Please read http://strapi.io/documentation/customization to learn more');
}
process.exit(1);
});
} else if (err.code === 'EACCES') {
logger.error('Impossible to access the `.strapirc` file at `' + HOME + '`');
logger.error('Please check read/write permissions before execute `$ strapi config`');
logger.error('You can manually create the file at `' + HOME + '`');
process.exit(1);
}
} else {
logger.warn('Looks like the configuration file already exists at `' + HOME + '`');
process.exit(0);
}
});
};
success: function returnSuccess() {
logger.info('Migration file successfully generated at `' + path.resolve(scope.rootPath, 'data', 'migrations', scope.connection) + '`.');
logger.info('Seed file created at `' + path.resolve(scope.rootPath, 'data', 'seeds', scope.connection) + '`.');
logger.warn('This migration has been automatically generated.');
logger.warn('We strongly advise you to manually verify those information.');
process.exit(0);
}
});
redis.connect((err) => {
redis.disconnect();
if (err) {
logger.warn('Database connection has failed! Make sure your database is running.');
return error();
}
logger.info('The app has been connected to the database successfully!');
execSync(`rm -r "${scope.tmpPath}"`);
logger.info('Copying the dashboard...');
success();
});
};