Permalink
Browse files

Added load script for debug

  • Loading branch information...
davidmerfield committed Dec 6, 2018
1 parent 148eecb commit 9c6a13c95be0c31240907602bd0d99fa666602cb
Showing with 12 additions and 1 deletion.
  1. +12 −1 scripts/folder/load.js
@@ -21,7 +21,13 @@ if (require.main === module) {
if (err) throw err;
access("dev", function() {
console.log(DROPBOX_FOLDER_PATH);
if (identifier === 'debug') {
console.log('Folder: ', join(helper.rootDir, "data", "debug"));
} else {
console.log('Folder: ', DROPBOX_FOLDER_PATH);
}
process.exit();
});
});
@@ -35,6 +41,11 @@ function main(label, callback) {
fs.ensureDirSync(join(dumps, label));
fs.copySync(join(dumps, label), blog_dir);
if (label === 'debug') {
fs.emptyDirSync(join(helper.rootDir, "data", "debug"));
fs.copySync(join(blog_dir, BLOG_ID), join(helper.rootDir, "data", "debug"));
}
fs.emptyDirSync(git_data_dir);
fs.ensureDirSync(join(gitClientData, label));
fs.copySync(join(gitClientData, label), git_data_dir);

0 comments on commit 9c6a13c

Please sign in to comment.