Answer the question
In order to leave comments, you need to log in
Uploading php scripts to multiple sites via FTP?
There is a certain set of scripts - a plugin for wordpress. This plugin is currently used on a dozen sites that are located on different hostings. I am constantly upgrading the plugin and it is necessary that the updated script files (the entire directory with files) be loaded by command or by pressing a button (by some simple action) to all 10 sites via the FTP protocol. So that you don’t have to go to every site and do something there. The standard mechanism for updating wp plugins through the repository is not suitable. This is an individual development only for specific sites :) I can’t even formulate a request to search on google.
I'll try to formulate it differently. I have Windows OS. There is a folder with a plugin - a set of php scripts and other things. It is necessary somehow that this folder in 1 command is uploaded to 10 different sites via FTP. FTP access is different for each site. Perhaps I have entered the wrong tags for the question.
Answer the question
In order to leave comments, you need to log in
Alternative:
Deploy Gitlab or a private Git server.
add a php script of the following format to cron:
1 - Request to the central server where the version number is stored. If there is a newer version, run the update.
2 - Update via git clone
Well, the rest of the bells and whistles - a forced backup before updating. And so on.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question