Before you sign up for a new server plan. Make sure you have the SSH access to the new server.
1.Install flarum in your new server. More information please check the official document.
composer create-project flarum/flarum
2.Create a new database, set up database user name and password.
3.Visit your url of flarum site. Finish the installation process by filling in all the above database information, as well as the admin information.
4.To check if your install flarum successfully or not, login your new flarum site, and go to the admin panel then check the current version number. eg. 1.8
Above is the installation part, and next will be migration.
5.Copy and past your previous composer.json file(in flarum folder) in the new flarum site composer.json file. eg. for flarum.core = 1.4 version
6.Login through SSH, then run the following commands:
composer update --prefer-dist --no-plugins --no-dev -a --with-all-dependencies
php flarum migrate
php flarum cache:clear
7.Login in through admin account through your flarum url site, and check in the admin dashboard. You can chech that your version is updated.
8.Import your previous flarum database to your new flarum site's Database.
9.Get your previous asset folder(in flarum foler) and replace the new asset folder. It's easy just to zip the whole asset folder, then upload into the new server.