Jump to content

jonsjava

Members
  • Posts

    1,579
  • Joined

  • Last visited

Posts posted by jonsjava

  1. I had someone on a budget once (read: $10/month).  My solution, while not elegant, worked.

     

    1. Ensure your code is in Git
    2. Configure the deploy user to have access to Git via SSH
    3. Clone the repo into the directory you wish to serve it out of
    4. Create a cron that runs ever x minutes/hours that will do the following:
      cd /path/to/your/code && git reset --hard && git pull origin master
      

    This solved their problem.  There are better solutions (Jenkins, for example), but if you want simple, cron + git works.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.