Advertisement
sparkychild

Untitled

Feb 29th, 2020
895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. 'use strict';
  2.  
  3. // edit config
  4. let fs = require('fs');
  5. let file = fs.readFileSync('dawn/config/config.js').toString();
  6. file = file.replace('exports.port = 6969;', 'exports.port = 8080;');
  7. fs.writeFileSync('dawn/config/config.js', file);
  8.  
  9. // move logs
  10. let proc = require('child_process');
  11. proc.exec('mv azure/logs dawn && rm -rf azure/logs && echo Done!', (error, stdout, stderr) => {
  12. console.log(`${stdout}${stderr}`);
  13. });;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement