%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/src/public/app-assets/vendors/formBuilder-master/tools/
Upload File :
Create Path :
Current File : /home/opti/workflow/src/public/app-assets/vendors/formBuilder-master/tools/deploy.js

const { exec } = require('child_process');

const onFinish = (err, cb) => {
  if (!err) {
    return cb();
  } else {
    console.error(err);
    return process.exit(1);
  }
};

// Deploy the demo and site.
exec('git push origin $(git subtree split --prefix demo $(git rev-parse --abbrev-ref HEAD)):gh-pages --force', err =>
  onFinish(err, () => console.log('Demo successfully deployed'))
);

Zerion Mini Shell 1.0