diff --git a/bingauto2.js b/bingauto2.js index 91fb068..d842b8f 100755 --- a/bingauto2.js +++ b/bingauto2.js @@ -50,7 +50,7 @@ module.exports = class BingAuto2 { let option = { headless: this.headless, userDataDir: tmp_dir, - args: ["--proxy-server='direct://'", '--proxy-bypass-list=*', '--disable-site-isolation-trials'] + args: ["--proxy-server='direct://'", '--proxy-bypass-list=*', '--disable-site-isolation-trials', '--no-sandbox'] }; this.browser = await puppeteer.launch(option); diff --git a/cron.sh b/cron.sh new file mode 100755 index 0000000..eb29070 --- /dev/null +++ b/cron.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd /root/bingauto2 +node ./index.js &>> cron.out \ No newline at end of file