Wazarr94 / haxball_bot_headless

Ready-to-go scripts and functions for the HaxBall Headless API !
MIT License
46 stars 74 forks source link

Json file in localhost #62

Closed peppewarrior1 closed 1 year ago

peppewarrior1 commented 1 year ago

hi i have a question. I would like to understand how to recover the json file if I host it locally. I noticed that the data is saved continuously but I would like to move everything to a vps. How do I proceed?

Wazarr94 commented 1 year ago

By JSON file you mean the localStorage?

If so, use this repository to host: https://github.com/Wazarr94/haxball-puppeteer Find where the local storage is saved in your computer. For Chrome, it's %LocalAppData%\Google\Chrome\User Data and copy the Default folder. To keep your stats, create a folder called user-data-dir and copy the folder in it.

That should do the trick.

peppewarrior1 commented 1 year ago

By JSON file you mean the localStorage?

If so, use this repository to host: https://github.com/Wazarr94/haxball-puppeteer Find where the local storage is saved in your computer. For Chrome, it's %LocalAppData%\Google\Chrome\User Data and copy the Default folder. To keep your stats, create a folder called user-data-dir and copy the folder in it.

That should do the trick.

Since I would like to migrate to a VPS soon, is it not possible to find the specific file directly and be able to save it when this happens?