The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to use git on subdomain for development or support

Discussion in 'Workarounds and Optimization' started by Harikalar Kutusu, Nov 15, 2016.

Tags:
  1. Harikalar Kutusu

    Joined:
    Jan 13, 2016
    Messages:
    23
    Likes Received:
    6
    Trophy Points:
    3
    Location:
    Istanbul, Turkey
    cPanel Access Level:
    Root Administrator
    I'm fairly noob on internals of git system. We have been using it locally with SmartGit client. Now I seek for options to build remote repositories.

    The scenario I have in mind is as follows:

    I have hostname.mydomain.com VPS with root access.
    I have my company domain on mydomain.com
    I want to develop securely on e.g. git.mydomain.com, which should never be public.
    Master branches of latest versions should be available (not public, e.g. accessible with credentials) on e.g. support.mydomain.com
    I'll use these masters e.g. on IoT device installations with wget etc.

    What is the best way to implement such a scenario?
    I do not want to give SSH access to any device other than in-house developers.

    I'm aware of the included git and namecheap.com's tutorial, but I'm not sure how I can adapt it:
    Namecheap.com Knowledgebase • How to deal with Git on our shared servers (SSH Access)

    Any directions will be much appreciated...
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,979
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Harikalar Kutusu likes this.
  3. Harikalar Kutusu

    Joined:
    Jan 13, 2016
    Messages:
    23
    Likes Received:
    6
    Trophy Points:
    3
    Location:
    Istanbul, Turkey
    cPanel Access Level:
    Root Administrator
    Very good information, thank you !
     
Loading...

Share This Page