Git Version Control

Saad shared this idea 3 years ago
Completed

Please add feature of GIT Version Control in SPanel.

12 votes

Comments (5)

photo

GIT is already available in SPanel.

photo

I don't see git in the panel

photo

Hi Vlad, I am also not seeying the feature. It would have been fantastic to have been able to upload to any account GIT changes to a live server(instead of using FTP each time).

photo
Hi, Ben. GIT is pre-installed on all SPanel VMs and you may manage it via SSH. Do you want to manage it via the SPanel User Interface? If that is the case, what features in there you would like to see available? What others think about this? If the demand is there, we can plan and integrate GIT in the graphic interface for easy management.
photo

I personally would love to see a integration similar to e.g. Portainers git integration. It works basically like this:

  1. First you place your git credentials (username & password) for your git server (don't just assume that everyone uses GitHub) in a central location on a per client basis. Not every client should be able to use the same git credentials of course.
  2. For a new website, you choose "git deploy" and get a small form to fill out
    • Git Repo Url
    • Choose git credentials from dropdown
    • Auto Updates: Choose between polling or webhook
      • For Polling: Add an interval field where we can adjust the polling rate. Then on every interval do an git pull to update the website
      • For Webhook: Give us some url like my.spanel.tld/api/website123/update-hook we can send a post request to to trigger an update with git pull
    • Enter branch to use
    • Enter folder to use for deployment
    • Deploy! The system now automatically clones the repository with the provided url, branch & credentials & uses that to publish the website. Bonus: After cloning, check if git submodules are present and init them recursively with git submodule update --init --recursive

    I don't use SPanel yet, but this feature missing is a major blocker for me. Handling git deployments manually is just not feasible if you need to write custom code for your customers a lot & its prone to errors.

    Leave a Comment