|
|
@@ -1,22 +0,0 @@
|
|
|
-/**
|
|
|
- * the tool for download CDN resources and save as file
|
|
|
- *
|
|
|
- * @author Yuki Takei <yuki@weseek.co.jp>
|
|
|
- */
|
|
|
-
|
|
|
-require('module-alias/register');
|
|
|
-
|
|
|
-const logger = require('@alias/logger')('growi:bin:download-resources');
|
|
|
-const CdnResourcesService = require('@commons/service/cdn-resources-service');
|
|
|
-
|
|
|
-const service = new CdnResourcesService();
|
|
|
-
|
|
|
-logger.info('Start to download.');
|
|
|
-
|
|
|
-service.downloadAndWriteAll()
|
|
|
- .then(() => {
|
|
|
- logger.info('Download is terminated successfully');
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- logger.error(err);
|
|
|
- });
|