BobbyWibowo / lolisafe

Blazing fast file uploader and awesome bunker written in node! 🚀
MIT License
317 stars 56 forks source link

Regarding switching hosts #179

Closed intelfierce closed 4 years ago

intelfierce commented 4 years ago

Hi I am planning to switch my host is there any guide to switch domains and host without loosing any data.

BobbyWibowo commented 4 years ago

Just transfer the entire lolisafe directory as is. All uploads and database are by default within the directory as well. Then afterwards make sure to change the domain names in config.js file to match your new domains.

If you use Nginx, you shouldn't have to change anything other than the domain names as well.

BobbyWibowo commented 4 years ago

You will also have to purge node_modules sub-directory and run yarn install (or yarn install --production) again on the new host, if it is going to be using a different operating system or version. Some of the dependencies are OS-dependant. For good measures, do it anyway even if the OS is similar.

The database file itself is cross-platform though, so no need to worry about that.

intelfierce commented 4 years ago

would the existing links still be online after I change the host?

BobbyWibowo commented 4 years ago

Ja.