3
I have a system where it is possible to add extensions and plugins via web interface by uploading a file .zip
.
That file .zip
is unzipped by the system and the files go to a specific server folder.
However, these files are not included in the project repository (private), which is always outdated. If I need to edit any of these new files, I end up having to download them from the server.
I would like to know how I can include these new files to the repository after uploading in order to have them locally while running git pull
, for example.
What exactly do you have in mind? Do you want your server to commit/push those files every upload? Do you want something like this to happen every morning? Do you want a manual procedure to commit to this file? Overall I don’t know how interesting it is to persist environment settings (in this case, plugins and extensions) in your project’s Repo... If you really want to do this, I would at least create a separate repository for these plugin settings and include this as a submodule in the main project.
– Anthony Accioly
I suggest a search for the Github API: https://developer.github.com/v3/ - Create the archive in the repository and upload - After, Commit
– Andre Mesquita
@Anthonyaccioly, excellent observation! It really doesn’t make much sense that approach I wanted to take. In fact, I had nothing in mind. The how-to would be my main doubt, IE, I ended up not taking into account the automation, or not, of the process.
– Caesar