BitBucket Code Versioning

0

Good afternoon people, I work in a website development company and we have the idea / need to host all sites in github / bitbucket to stop using the old and good FTP as the main "versioning" of code.

The point is that all sites have a specific server, after all they are separate clients and my idea is as follows.

Example of actual usage:

  • Create project in github / bitbucket
  • Import files into the project
  • All pushs to the repository should also fall on the client-specific server.
  • In other words, I wanted the project to be "hosted" in github / bitbucket and would like the pushs to be automatically sent to the client server.

    People, before they judge me I'm not asking for code or that you do for me I'm just wondering if this is possible and if you do not give me alternatives, links, a north so I start studying this "functionality." Thank you all !!

        
    asked by anonymous 20.07.2017 / 18:37

    2 answers

    2
      

    All pushs to the repository should also fall on the client-specific server.

    Search for continuous deployment (or CD) and tools that can help with Jenkins, CodeShip, etc.

    If you're already familiar with Git, try the Git Hooks .

    You also have the option of pipelines from GitBucket which is recent and a bit more complex to configure.

        
    20.07.2017 / 19:42
    1

    There are several tools you can use for this scenario, which I point out is the Visual Studio Team Services (VSTS) .

    Well, what is VSTS? It's a DevOps platform, where you find many features to "improve" your life in a scenario just like that.

    Some of the functions are:

    • Versioning, using GIT or TFVC repositories;
    • Agile Planning, Managing All Your Tasks, Your Kanban, etc.
    • Automated builds to ensure the quality and integrity of your application
    • Automated Deployment

    As you can see, you can do a lot of things there. To meet this idea, you can perform a push to the master, trigger a build process that will perform the validations as if it has no broken code, tests automated, quality, etc., and after that can start your deploy process and deploy your application on the server of your clients.

    VSTS is a free tool for teams with up to 5 developers, you also have 240 minutes per month of build / deployment for your applications.

    Although the tool name is Visual Studio Team Services, it does not only work with .Net, you can very well use your project in Java for example, since the build and deploy agents also run on linux machines, that is VSTS is multi-platform.

    If you want to know more about VSTS, I have some videos on my channel

    21.07.2017 / 03:15