I made a test installing two extensions (Analytics and Imgur).
- On my computer, I run the composer appropriate command to install (or remove) extensions
- The modified files are (apart from the extensions directory tree in "extensions") :
- composer.json and composer.lock in the root directory
- autoload_psr4.php and installed.json in the vendor/composer directory
- I copy all that on the server (the 4 files and the directory)
- I access the forum. It works for a while and opens.
- working like a charm
This example is limited, because these extensions don't have a migration directory.
Test with update of the database
I restart the above test from scratch, creating a new installation directory, but after installing Flarum, I removed (with composer) the tags extension. I copy the directory in the server, open the forum and configure. Once the forum is configured, the flarum database has only 19 tables instead of 22 and the tags are not present. Fine.
On the computer, I add the flarum/tags extension in my flarum local install, and install it on the server as described above.
I open the forum, the tags extension is installed and the database has now 22 tables.
I expect that for an update of an extension it would work as well.
I am waiting for beta5 to know if the process can work in this case.